Visual Studio IDE 2013에서 Windows Phone 8 프로젝트를 컴파일하려고하는데 MainPage.xaml의 구문 분석에 오류가 발생합니다.Windows Phone 8 프로젝트를 컴파일하는 XAML 구문 분석 예외
다음 코드에서는 오류 Windows.UI.Xaml.Markup.XamlParseException
가 표시됩니다. 내가 잘못 했니? 문제는 AppBar
태그 시작 줄에서 기인합니다.
<Page
x:Class="MainStream.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MainStream"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Image Grid.RowSpan="2" Stretch="None" Source="/img/sfondo.png" VerticalAlignment="Top" HorizontalAlignment="Center"/>
<FlipView x:Name="flipView1" Width="480" Height="270" Margin="0,10,0,0" VerticalAlignment="Top" BorderBrush="Black" BorderThickness="1">
<Image Width="480" Height="270" Stretch="UniformToFill"/>
<TextBlock FontFamily="Segoe UI" FontSize="26.667" Foreground="#CCFFFFFF" Padding="15,20"/>
</FlipView>
<AppBar VerticalAlignment="Bottom" HorizontalAlignment="Center">
<StackPanel Orientation="Horizontal">
<AppBarButton Click="Play_Click" Label="Play" Icon="Play"/>
<AppBarButton Click="Pause_Click" Label="Pause" Icon="Pause"/>
</StackPanel>
</AppBar>
</Grid>
</Page>
오류 :
Cannot create instance of type '%0' [Line: 18 Position: 17] The text associated with this error code could not be found.
사람은 나에게 솔루션을 제안 할 수 있습니다?
내가 틀릴 수도 있지만 AppBar는 Page 요소의 하위 여야한다고 생각합니다. 즉, 요소의 앞이나 뒤에 있어야합니다. – JayDev
당신은 WP8 또는 WP8.1에 대한 코딩 방법은 확실 해요 그게 WP8의 응용 프로그램 막대에 대한 올바른 xaml 아니에요 – JayDev
고맙습니다,하지만 Microsoft 문서에서 나는 아직도 올바른 형식이 무엇인지 이해하지 못합니다. . –