Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Message Box ShowDialog

$
0
0
Hi,

ShowDialog method will stop execution. You can test it with a button :
 private void Button_Click( object sender, RoutedEventArgs e )
    {
      var msgBox = new Xceed.Wpf.Toolkit.MessageBox() { Caption = "Message", Text ="Content Message"  };
      var rValue = msgBox.ShowDialog();
      if( rValue.HasValue )
      {
        if( rValue.Value )
          System.Diagnostics.Debug.WriteLine("return true");
        else
          System.Diagnostics.Debug.WriteLine( "return false" );
      }
      else
      {
        System.Diagnostics.Debug.WriteLine( "no return value" );
      }
    }

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>