-
November 6th, 2015, 02:35 AM
#1
How Can I Refer To A New Page In Windows Store Universal App(Visual C++) ?
I'm new to windows app developing.
I created project in visual studio 2015 under visual c++ universal store app.
I added a new page from
project>add new item>xaml>basic page
I want to refer to the new page when I click a button in the main page.
my new page name is **BasicPage**
I added
#include "BasicPage.xaml.h"
and
using namespace Windows::UI::Xaml::Interop;
to the **MainPage.xaml.cpp**
and I added a button to mainpage and add this code to button click event
void Apptest_0_3::MainPage::button_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
if (this->Frame != nullptr)
{
this->Frame->Navigate(TypeName(BasicPage::typeid));
}
}
**How Can I fix this error?**
Thanks
http://i.stack.imgur.com/XGcj4.jpg
here is the screenshot of the error
http://i.stack.imgur.com/X4G9E.jpg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|