简体   繁体   中英

Show message box when page opens in Windows RT

How can I show message box when a page has opened? This is the code for my WP project, but I want to know the WinRT version of it.

    protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
    {
        base.OnNavigatedTo(e);

        CustomMessageBox messageBox = new CustomMessageBox()
        {
            Caption = "",
            Message = "",
            LeftButtonContent = "ok"
        };

        messageBox.Show();
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM