2012-04-01 62 views
0

如何从我班的对象中获取页面的指针?NavigationService

所以,我有这样的代码:

 <controls:PivotItem Header="Today"> 
      <Grid> 
       <ScrollViewer Height="520" VerticalAlignment="Top"> 
        <local:Fixtures Adress="..." Clubs="..."/> 
       </ScrollViewer> 
      </Grid> 
     </controls:PivotItem> 

我需要做NavigationService.GoBack()中的异常处理程序在我班上的灯具。

我该怎么办?

回答

3
(App.Current as App).RootFrame.GoBack() 
相关问题