Hello, I am having a problem navigating to pages in my silverlight App. I am using a normal button instead of a Hyperlink button.
Here is my xaml code:
<navigation:Frame x:Name="ContentFrame"
Source="/RequestViews" Navigated="ContentFrame_Navigated" Height="279" Width="494" HorizontalAlignment="Right">
<navigation:Frame.UriMapper>
<uriMapper:UriMapper>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/RequestViews/Home.xaml"/>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/RequestViews/{pageName}.xaml"/>
</uriMapper:UriMapper>
</navigation:Frame.UriMapper>
</navigation:Frame>
</Border>
<Grid x:Name="NavigationGrid" >
<ComboBox Height="24" HorizontalAlignment="Left" Margin="203,13,0,0" Name="comboBox1" VerticalAlignment="Top" Width="166" />
<TextBox Height="24" HorizontalAlignment="Left" Margin="54,14,0,0" Name="textBox1" VerticalAlignment="Top" Width="108" />
<Button Content="Button" Height="35" HorizontalAlignment="Left" Margin="422,21,0,0" Name="button1" VerticalAlignment="Top" Width="113" Click="button1_Click_1" />
</Grid>
</Grid>
and my code behind:
private void button1_Click_1(object sender, RoutedEventArgs e)
{
}
I have also tried:
this.Dispatcher.BeginInvoke(() => this.ContentFrame.Navigate(new Uri("/Home", UriKind.Relative)));