title: How to navigate between pages in windows universal app using C++/CX
body: <p>I am new to Windows universal app development. As per my knowledge Windows universal app can be made by using <strong>C++/CX</strong> , <strong>C#</strong> or <strong>JavaScript.</strong> But Microsoft force to do development by using <strong>C++/CX</strong> because it uses power of winRT much better than others. So i tried the development using <strong>C++/CX for Visual Studio 2015.</strong> 
  I come to a topic of Navigation. To perform navigation in app there is one API<br>
  <strong>this->Frame->Navigate(TypeName(MySecondPage::typeid))</strong>. This API gives me a exception at runtime.</p>
  
  <p>This is the detail scenario what i did.
  1. I create project by named <strong>NavigationSample</strong> using C++/CX.</p>
  
  <ol start="2">
  <li><p>Then i added new Basic Page of xaml for my Second view/ui and named it as <strong>MySecondPage.xaml</strong></p></li>
  <li><p>Now on first page i.e. <strong>MainPage.xaml</strong>    i added  One  button.</p></li>
  <li><p>On event of this button , lets say  button_Click as event handler i wrote<br>
  <strong>this->Frame->Navigate(TypeName(MySecondPage::typeid))</strong></p></li>
  </ol>
  
  <p>Here is the detailed code:</p>
  
  <p>void  <strong>NavigationSample::MainPage::button_Click(**Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e</strong>)**</p>
  
  <p><strong>{</strong></p>
  
  <pre><code>this-&gt;Frame-&gt;Navigate(TypeName(MySecondPage::typeid));
  </code></pre>
  
  <p><strong>}</strong></p>
  
  <ol start="5">
  <li><p>This compile and build fine. But gives exception at runtime. (Same scenario works very fine with C#)</p>
  
  <p>So guys please help me how to resolve this issue?
  Thanks</p></li>
  </ol>