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

qshinoの日記

Powershell関係と徒然なこと

Application.Run()

Applucation.Run()

何をしているのか?

MSDN/wpfだとあっさりと、

Run()

Starts a Windows Presentation Foundation (WPF) application.

Run(Window)

Starts a Windows Presentation Foundation (WPF) application and opens the specified window.

さて

Application classの記述を見ると、スタンドアローンの場合、Applicationオブジェクトが必要ではないらしい。

とは言え、何をするものか?

A standalone application does not require an Application object; it is possible to implement a custom static entry point method (Main) that opens a window without creating an instance of Application. However, XAML browser applications (XBAPs) require an Application object.

参考

wpf application

https://msdn.microsoft.com/ja-jp/library/system.windows.application(v=vs.110).aspx

wpf Applucation.Run

https://msdn.microsoft.com/ja-jp/library/ms597010(v=vs.110).aspx

https://social.msdn.microsoft.com/Search/ja-jp/?Query=Application.Run+メソッド

http://dobon.net/vb/dotnet/form/runvsshowdialog.html

Event powershell

https://blogs.technet.microsoft.com/heyscriptingguy/2011/06/16/use-asynchronous-event-handling-in-powershell/

application.run() vs ShowDialog()

http://dobon.net/vb/dotnet/form/runvsshowdialog.html

application.run()

https://msdn.microsoft.com/ja-jp/library/ms597010(v=vs.110).aspx

application class

https://msdn.microsoft.com/ja-jp/library/system.windows.application(v=vs.110).aspx#メソッド

application exit event

https://msdn.microsoft.com/ja-jp/library/system.windows.application.exit(v=vs.110).aspx

application shutdownmode

https://msdn.microsoft.com/ja-jp/library/system.windows.application.shutdownmode(v=vs.110).aspx