Click here to Skip to main content
15,867,568 members
Articles / Desktop Programming / WPF
Alternative
Tip/Trick

TIP: Handling WPF DialogResult with simplicity

Rate me:
Please Sign up or sign in to vote.
4.00/5 (3 votes)
26 Jul 2010CPOL 12.1K   1   2
if(frm.DialogR...
C#
if(frm.DialogResult.GetValueOrDefault)
{
   // some content... 
}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 4 Do you want to read a long character... Pin
osam12-Jul-11 7:31
osam12-Jul-11 7:31 
GeneralReason for my vote of 4 I like it. I think it should work a... Pin
Jaime Olivares5-Sep-10 22:14
Jaime Olivares5-Sep-10 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.