小编Mat*_*evz的帖子

“页面”类型不支持直接内容

我从模板创建了新的 Uno Cross-Platform App 2.2。当我在代码视图中打开 Shared->MainPage.xaml 时没有打开设计器,出现下划线错误The type 'page' does not support direct content

<Page
    x:Class="App6.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App6"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <TextBlock Text="Hello, world!" Margin="20" FontSize="30" />
    </Grid>
</Page>
Run Code Online (Sandbox Code Playgroud)

uno-platform

6
推荐指数
1
解决办法
1837
查看次数

标签 统计

uno-platform ×1