public void ShowNavigationError(Uri targetUri)
 {
     C1MessageBox.Show(targetUri.OriginalString + "\r\n" + new System.IO.FileNotFoundException().Message,
                       "Navigation Error", C1MessageBoxIcon.Warning,
                       new Action <MessageBoxResult>((r) =>
     {
     }));
 }
        private void listMsgBoxOptions_ItemClick(object sender, SourcedEventArgs e)
        {
            var menuItem  = (C1MenuItem)e.Source;
            var selection = (C1MessageBoxButton)menuItem.Header;

            SelectMessageBoxType(selection);

            C1MessageBox.Show("", "", _selectedButton);
        }
 // monitor spell-checker events
 void _c1SpellChecker_CheckControlCompleted(object sender, CheckControlCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         var msg = string.Format("Spell-check complete, {0} errors found.", e.ErrorCount);
         C1MessageBox.Show(msg, "Spelling");
     }
     WriteLine("CheckControlCompleted: {0} errors found", e.ErrorCount);
     if (e.Cancelled)
     {
         WriteLine("\t(cancelled...)");
     }
 }
 private void btnOpenMsgBox_Click(object sender, RoutedEventArgs e)
 {
     C1MessageBox.Show("", "", _selectedButton);
 }