Xaml     xmal每个元素都对应着一个类,但是在xmal中,只提供类名是不够的,需要知道该类实在.net的哪个命名空间下面.Xaml解析器才能够正确的解析.

 1 <Page
 2     x:Class="App1.MainPage"
 3     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 4     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 5     xmlns:local="using:App1"
 6     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 7     xmlns:mc="http://schemas.openxmlformats.org/markup-
 8 
 9 compatibility/2006"
10     mc:Ignorable="d"
11     Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
12 
13     <Grid x:Name="RootLayout">
14 
15     </Grid>
16 </Page>
View Code

相关文章:

  • 2022-12-23
  • 2021-05-08
  • 2021-09-10
  • 2021-08-28
  • 2022-01-29
  • 2022-02-05
  • 2022-01-12
  • 2021-09-23
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2021-05-17
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案