0
如何在页面打开时显示消息框?这是我的WP项目的代码,但我想知道它的WinRT版本。在Windows RT中打开页面时显示消息框
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
CustomMessageBox messageBox = new CustomMessageBox()
{
Caption = "",
Message = "",
LeftButtonContent = "ok"
};
messageBox.Show();
}
页面打开不只是为了显示它时,我想它。我的代码中需要更改什么? – MacaronLover 2015-04-04 11:56:52