Passing a complex object to a page while navigating in a WP7 Silverlight application

前端 未结 5 1433
礼貌的吻别
礼貌的吻别 2020-11-30 06:05

I have been using the NavigationService\'s Navigate method to navigate to other pages in my WP7 Silverlight app:

NavigationService.         


        
5条回答
  •  误落风尘
    2020-11-30 06:32

    App.xaml.cs -> App class, add a field/property there. To access it, if it is static use:

    App.MyComplexObject
    

    Or if is not staic

    (App.Current as App).MyComplexObject;
    

提交回复
热议问题