Coder Social home page Coder Social logo

metro.dialogs's Introduction

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

metro.dialogs's People

Contributors

asvol avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.