我在我的银灯网站点击一个 but子时,我希望我的内容框架能够浏览一个不同页(大约xaml)。 我采用以下守则这样做。
ContentFrame.Navigate(new Uri("/Views/About.xaml", UriKind.Relative));
And my ContentFrame looks like this
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Grid.Row="0" Grid.Column="1" Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
<navigation:Frame.UriMapper>
<uriMapper:UriMapper>
<uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
</uriMapper:UriMapper>
</navigation:Frame.UriMapper>
</navigation:Frame>
然而,当我发布消息时,我收到错误信息:
Page not found: "/Views/About"
我的项目希望: