콘텐츠로 이동

ApplicationBuilder class

이 콘텐츠는 아직 번역되지 않았습니다.

Configures and runs an Application using an AppOptions instance.

Guide: C# Markup reference: Misc

public sealed class ApplicationBuilder
name description
ApplicationBuilder(…) Initializes a new instance of the ApplicationBuilder class.
MainWindowFactory { get; set; } Gets or sets a factory used to create the main window when calling Run.
Options { get; } Gets the options to be applied when running the application.
Run() Applies configured options and runs the application; without a MainWindowFactory a startup callback is required and the run has no main window.
Run(…) Applies configured options and runs the application with the given main window.
Run<TWindow>() Applies configured options and runs the application using a new instance of TWindow.
RunAsync(…) Applies configured options and runs the application asynchronously.