Max Zhukov
Max Zhukov

Reputation: 897

NavigationService

How can I get pointer of page from object of my class?

So, I have this code:

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

And I need make NavigationService.GoBack() in exception handler in my class Fixtures.

How can I do it?

Upvotes: 0

Views: 279

Answers (1)

Ku6opr
Ku6opr

Reputation: 8126

(App.Current as App).RootFrame.GoBack()

Upvotes: 3

Related Questions