読者です 読者をやめる 読者になる 読者になる

qshinoの日記

Powershell関係と徒然なこと

WPF messageBox by PowerShell

WPF messageBox

MessageBoxResult result = MessageBox.Show("Do you want to close this window?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (result == MessageBoxResult.Yes)
{
    Application.Current.Shutdown();
}

参考

MSDN

http://msdn.microsoft.com/en-us/library/system.windows.messagebox.aspx

StackOverflow

http://stackoverflow.com/questions/3830228/is-there-a-messagebox-equivalent-in-wpf

http://www.c-sharpcorner.com/uploadfile/mahesh/messagebox-in-wpf/