C# Class System.Windows.Mvvm.Application.MvvmApplication

Represents the base class for applications based on the MVVM pattern.
Inheritance: Windows.Application, IDisposable
Datei anzeigen Open project: lecode-official/mvvm-framework

Public Methods

Method Description
Dispose ( ) : void

Disposes of all managed and unmanaged resources that were allocated.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of all managed and unmanaged resources that have been allocated. This method can be overridden by sub-classes in order to implement custom disposal logic.

OnExit ( ExitEventArgs e ) : void

Is called just before the application is shut down.

OnExitAsync ( ) : Task

Gets called right before the application quits. This can be overridden by the user to implement custom shutdown logic.

OnStartedAsync ( ApplicationStartedEventArgs eventArguments ) : Task

Gets called after the application startup. This can be overridden by the user to implement custom startup logic and displaying views.

OnStartup ( StartupEventArgs e ) : void

Is called once the application has started.

OnUnhandledExceptionAsync ( UnhandledExceptionEventArgs eventArguments ) : Task

Gets called if an exception was thrown that was not handled by user-code.

Method Details

Dispose() public method

Disposes of all managed and unmanaged resources that were allocated.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes of all managed and unmanaged resources that have been allocated. This method can be overridden by sub-classes in order to implement custom disposal logic.
protected Dispose ( bool disposing ) : void
disposing bool /// Determines whether only unmanaged, or managed and unmanaged resources should be disposed of. This is needed when the method is called from the destructor, because when the destructor is called all managed resources have already been disposed of. ///
return void

OnExit() protected method

Is called just before the application is shut down.
protected OnExit ( ExitEventArgs e ) : void
e ExitEventArgs The event arguments that contain more information about the application shutdown.
return void

OnExitAsync() protected method

Gets called right before the application quits. This can be overridden by the user to implement custom shutdown logic.
protected OnExitAsync ( ) : Task
return Task

OnStartedAsync() protected method

Gets called after the application startup. This can be overridden by the user to implement custom startup logic and displaying views.
protected OnStartedAsync ( ApplicationStartedEventArgs eventArguments ) : Task
eventArguments ApplicationStartedEventArgs The arguments that contain more information about the application startup and the navigation service, which can be used to navigate to the intial window and view.
return Task

OnStartup() protected method

Is called once the application has started.
protected OnStartup ( StartupEventArgs e ) : void
e StartupEventArgs The event arguments that contain more information about the application startup.
return void

OnUnhandledExceptionAsync() protected method

Gets called if an exception was thrown that was not handled by user-code.
protected OnUnhandledExceptionAsync ( UnhandledExceptionEventArgs eventArguments ) : Task
eventArguments UnhandledExceptionEventArgs The event arguments that contain further information about the exception that was not properly handled by user-code.
return Task