tags:

views:

69

answers:

1

I have a problem when I click on a hyperlink. Page1 should load in frame1 in a WPF window.

A: 

I grabbed this example from Adam Nathan's book:

<TextBlock>
Click <Hyperlink NavigateUri="page1.xaml">here</Hyperlink> to view the page.
</TextBlock>

You can also do this in code:

this.NavigationService.Content = nextPage;

or

this.NavigationService.Source = new Uri("page1.xaml", UriKind.Relative);
Scott Whitlock