我正在编写Windows Phone 8.1应用程序(WINRT)
我添加了SlideView库。在幻灯片视图中添加了三个网格。它工作正常且令人讨厌。 https://slideview.codeplex.com
现在问题出在导航上。我在slideview中添加了一个按钮,每当我单击它以导航到应用程序的另一页面时,它就会崩溃。
<controls:SlideView>
<Grid Background="Teal"
Width="400">
<Button Click="Button_Click">Goto all questions test </Button>
</Grid>
<Grid Background="Tomato" />
<Grid Background="LightYellow" />
<Grid Background="YellowGreen"
Width="400"/>
</controls:SlideView>
private void Button_Click(object sender, RoutedEventArgs e)
{
this.Frame.Navigate(typeof(MedicalUserQuestionAnswerFeedPage));
}
我尝试调试每一行,但Visual Studio未能捕获异常。
试试这个:
Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => frame.Navigate(typeof(YourPage)));
我有同样的问题,并解决了此问题。我尚未找到根本原因,但我计划进行调查,因为这很烦人
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句