Skip to content

asvol/Metro.Dialogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metro dialogs

This user control lib implement some dialogs at metro style:

  • About box dialog
  • Message dialogs
  • Open/save file dialog
  • Select folder dialog
  • Select items dialog
  • Splash screen dialog

Based on MahApps.Metro and Caliburn.Micro

icons:http://modernuiicons.com/

//create by ctor
var svc = new WindowDialogs()
//or using IoC
var svc = IoC.Get<IWindowsDialogs>();

About box

//show dialog and get result "key1" or "key2" ...
var result = svc.ShowAboutBox("Metro Dialogs", "0.1.2.345", "About program, bla-bla-bla...",
                                         new ActionViewModel("DefaultAction", "key1", true),
                                         new ActionViewModel("CancelAction", "key2", false, true),
                                         new ActionViewModel("CustomAction", "key3"));

about

Splash screen

svc.OpenSplashScreen("Metro.Dialogs", "0.1.2.34", "About box\nSplash screen\netc...",
                                             "Organization ltd.", "all right reserved", "licened to ");

splash

Select item dialog

//without filter
svc.SelectItemDialog("Caption", "Message", false,
                new SelectItem("DisplayName 1", "Description 1", 1),
                new SelectItem("DisplayName 2", "Description 2", 2);
                
//with filter items
svc.SelectItemDialog("Caption", "Message", true,
                new SelectItem("DisplayName 1", "Description 1", 1,_=>_ == "1"),
                new SelectItem("DisplayName 2", "Description 2", 2, _ => _ == "2"));

select

Message box dialogs

Error

error

Info

info

Warn

warn

Ask user yes/no

askyesno

Dialog with button info

withInfoButton

Dialog with custom buttons

customButton

Example app

main

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages