Just wondering if you thought about including the dialogs that mimic the behavior of the standard Windows dialogs into your library? We have partially reimplemented them in our projects, but I'm sure the whole community would benefit from having such dialogs in your library.
Here's the link to the "Dialog boxes" section of the Windows UX Design Guidelines:
http://msdn.microsoft.com/en-us/library/aa511268.aspxI think it would be great if we could use the API similar to that:
var dlgInfo = new DialogInfo
{
Style = Buttons,
Caption = "Internet Security - Security Warning",
MainInstruction = "Do you want to run this software?",
Icon = Resources.QuestionIcon,
Text = "Name: Windows Live Messenger..",
MoreOptions = new MoreOptionsInfo
{
Icon = Icons.Shield,
Text = "While files from the Internet... blah-blah"
},
Choices = new[] { "Run", "Don't run" }
}
var dlgResult = DialogUtils.Show(dlgInfo);
if (dlgResult.Choice == "Run") { ... }
End result:
http://i.msdn.microsoft.com/Aa511268.Dialogs01(en-us,MSDN.10).pngWhat do you guys think about it?
Regards,
Andrew
Aa511268.Dialogs24(en-us,MSDN.10)[1]_90b32123.png