示例#1
0
 private void TestMessageDlg_Click(object sender, RoutedEventArgs e)
 {
     var dlg = new MessageDialog();
     dlg.ShowMsg("It's very easy to show this dialog as you only need to set the Visibility of the InputBox grid to visible. You then simply handle the Yes / No buttons and get the Input text from the TextBox. So instead of using code that requires ShowDialog(), you simply set the Visibility option to Visible.There are still some things to do in this example that we will handle in code - behind, like for example clearing the InputText box after handling the Yes / No Button clicks.");
 }
示例#2
0
        public static void ShowMessage(string msg, Window owner = null) {
            var diag = new MessageDialog();
            diag.ShowMsg(msg, owner);

        }