2012-04-01 66 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() 
相關問題