C# Class Channel9Downloader.ViewModels.Framework.SimpleViewModel

This class serves as base class for view models that require lifetime events.
Inheritance: BaseViewModel, ISimpleViewModel
显示文件 Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Public Methods

Method Description
RaiseActivateRequest ( ) : void

This raises the ActivateRequest event to activate the UI.

RaiseCloseRequest ( ) : void

This raises the CloseRequest event to close the UI.

RaiseCloseRequest ( bool dialogResult ) : void

This raises the CloseRequest event to close the UI.

Protected Methods

Method Description
OnWindowActivated ( ) : void

Allows Window.Activated hook

OnWindowClose ( ) : void

Allows Window.Close hook

OnWindowDeactivated ( ) : void

Allows Window.Deactivated hook

OnWindowLoaded ( ) : void

Allows Window.Loaded/UserControl.Loaded hook

OnWindowUnloaded ( ) : void

Allows Window.Unloaded/UserControl.Unloaded hook

SimpleViewModel ( ) : System

Initializes a new instance of the SimpleViewModel class. Wires up all the Window based Lifetime commands.

Method Details

OnWindowActivated() protected method

Allows Window.Activated hook
protected OnWindowActivated ( ) : void
return void

OnWindowClose() protected method

Allows Window.Close hook
protected OnWindowClose ( ) : void
return void

OnWindowDeactivated() protected method

Allows Window.Deactivated hook
protected OnWindowDeactivated ( ) : void
return void

OnWindowLoaded() protected method

Allows Window.Loaded/UserControl.Loaded hook
protected OnWindowLoaded ( ) : void
return void

OnWindowUnloaded() protected method

Allows Window.Unloaded/UserControl.Unloaded hook
protected OnWindowUnloaded ( ) : void
return void

RaiseActivateRequest() public method

This raises the ActivateRequest event to activate the UI.
public RaiseActivateRequest ( ) : void
return void

RaiseCloseRequest() public method

This raises the CloseRequest event to close the UI.
public RaiseCloseRequest ( ) : void
return void

RaiseCloseRequest() public method

This raises the CloseRequest event to close the UI.
public RaiseCloseRequest ( bool dialogResult ) : void
dialogResult bool The dialog result.
return void

SimpleViewModel() protected method

Initializes a new instance of the SimpleViewModel class. Wires up all the Window based Lifetime commands.
protected SimpleViewModel ( ) : System
return System