C# Class Windows.Mvvm.Application.MvvmApplication

Represents the base class for applications based on the MVVM pattern.
Inheritance: UI.Xaml.Application
Mostra file Open project: lecode-official/mvvm-framework

Public Methods

Method Description
MvvmApplication ( ) : System.Threading.Tasks

Initializesa a new MvvmApplication instance.

Protected Methods

Method Description
OnActivated ( IActivatedEventArgs eventArguments ) : void

Gets called when the application is being activated any other way that the normal way.

OnActivatedAsync ( IActivatedEventArgs eventArguments ) : System.Threading.Tasks.Task

Gets called when the app was activated by the user.

OnLaunched ( LaunchActivatedEventArgs eventArguments ) : void

Gets callen wehn the applicaiton is being activated via a launch.

OnResumingAsync ( ) : System.Threading.Tasks.Task

Gets called when the application is being resumed.

OnSuspendingAsync ( ) : System.Threading.Tasks.Task

Gets called when the app is being suspended. Can be used to save the current application state.

OnUnhandledExceptionAsync ( UnhandledExceptionEventArgs eventArguments ) : System.Threading.Tasks.Task

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

Method Details

MvvmApplication() public method

Initializesa a new MvvmApplication instance.
public MvvmApplication ( ) : System.Threading.Tasks
return System.Threading.Tasks

OnActivated() protected method

Gets called when the application is being activated any other way that the normal way.
protected OnActivated ( IActivatedEventArgs eventArguments ) : void
eventArguments IActivatedEventArgs The event arguments, that contain more information about the activation of the application.
return void

OnActivatedAsync() protected method

Gets called when the app was activated by the user.
protected OnActivatedAsync ( IActivatedEventArgs eventArguments ) : System.Threading.Tasks.Task
eventArguments IActivatedEventArgs The event argument, that contain more information on the activation of the application.
return System.Threading.Tasks.Task

OnLaunched() protected method

Gets callen wehn the applicaiton is being activated via a launch.
protected OnLaunched ( LaunchActivatedEventArgs eventArguments ) : void
eventArguments Windows.ApplicationModel.Activation.LaunchActivatedEventArgs The event arguments, that contain more information about the lauch of the application.
return void

OnResumingAsync() protected method

Gets called when the application is being resumed.
protected OnResumingAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnSuspendingAsync() protected method

Gets called when the app is being suspended. Can be used to save the current application state.
protected OnSuspendingAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnUnhandledExceptionAsync() protected method

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