ich Visual Studio 2015Was ist der C++ Code aus einer Haupt XAML Form in eine zweite Form XAML wechseln
ich eine App erschaffe ich verwenden, die verschiedene Formen hat, aber ich bin stecken, weil ich nicht tun kenne den Code um die Seiten zu wechseln.
Der Code MainPage.cpp Datei =
//
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
#include "IncomeForm.xaml.h"
using namespace pman_project2;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
MainPage::MainPage()
{
InitializeComponent();
}
void pman_project2::MainPage::Income_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
??????????????????????????????????????
}
Die Reihe von Fragezeichen ist, wo ich bin stecken. Ich habe online geschaut und es sagt mir, wie man es in C# tut, aber nicht in C++.
offenbar der Code in C# ist
this.Frame.navigate(typeof(page.IncomeForm));
kann jemand helfen?
'C++ - Cx' ist eine geeignetere Tag als' C++ 'für diese Frage. – crashmstr