I have a usercontrol.When I click on a button in this usercontrol,I need to navigate to another xaml page.How can I do it?
Asked
Active
Viewed 596 times
1 Answers
0
use this in your usercontrol.
<Frame NavigationUIVisibility="Hidden" Name="ContentFrame" />
once the user performs a button click action c# code event function will be triggered. In that function use this to goto the page you like
Page page = new Page()
Dispatcher.Invoke(() => { this.ContentFrame.Navigate(page); });

mehulviby
- 39
- 6