我正在尝试更新我的页面元素,但我的程序在更新期间崩溃了一些。/*
MainPage::MainPage()
{
InitializeComponent();
ApplicationData::Current->DataChanged += ref new TypedEventHandler<ApplicationData^, Object^>
(this, &MainPage::DataChangedHandler);
}
void MainPage::DataChangedHandler(Windows::Storage::ApplicationData^ appData, Object^)
{
this->UpdateUIElements();
}
*/