title: How to navigate links by button in WPF Modern UI in C#?
body: <p>I am using <a href="http://mui.codeplex.com/" rel="nofollow noreferrer">ModernUI</a>. I have one issue with Button and link.</p>
  
  <p>I am trying to navigate by Button Click event and my code in "Home.xaml" is as follow</p>
  
  <pre><code>private void addGameButton_Click(object sender, RoutedEventArgs e)
  {
      BBCodeBlock bs = new BBCodeBlock();
      try
      {
          bs.LinkNavigator.Navigate(new Uri("pack://application:/Pages/AddGame.xaml"), null);
      }
      catch (Exception error)
      {
          ModernDialog.ShowMessage(error.Message, FirstFloor.ModernUI.Resources.NavigationFailed, MessageBoxButton.OK);
      }
  }
  </code></pre>
  
  <p>mui:Link works fine in MainWindows.xaml for navigation. but I want to navigate to AddGame.xaml from Home.xaml Page by a Button, which is in Home.xaml page.</p>
  
  <p>My file structure is as below, for reference. </p>
  
  <p><img src="https://i.stack.imgur.com/V2Ksp.jpg" alt="Folder Structure"></p>
  
  <p>So please let me know, where am i doing wrong?</p>