1 <Border Name="Frame" Grid.Column="1" Style="{StaticResource ContentBorderStyle}">
2 <navigation:Frame x:Name="mainFrame"></navigation:Frame>
3 </Border>

导航的代码:

 IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings;
if (appSettings.Contains("state"))
{
appSettings["state"] = "1";
}
else
{
appSettings.Add("state", "1");
}
mainFrame.Navigate(new Uri("/Views/TaskList.xaml", UriKind.Relative));

其中:/表示进入工程的根目录,

    IsolatedStorageSettings:整个程序共享的一个资源



相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-07-14
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2022-02-21
  • 2021-09-24
  • 2022-01-28
  • 2021-12-06
  • 2021-04-02
相关资源
相似解决方案