Application.Run (Método) (Window)
Ensamblado: PresentationFramework (en presentationframework.dll)
A Window that opens automatically when an application starts.
Valor devueltoThe Int32 application exit code that is returned to the operating system when the application shuts down. By default, the exit code value is 0.
This overload extends the Run method to open the specified window after an application starts running.
If you define a code Application that opens a window when it starts running, you explicitly call Run.
If you create your Application using markup, or markup and code-behind, you can automatically open a window during using either of the following techniques:
The following example shows an application with a manually-created static entry point method that instantiates Application, before calling Run.