Property | Type | Description | |
---|---|---|---|
ViewLoadManager | IViewLoadManager | ||
_lockObject | object |
Property | Type | Description | |
---|---|---|---|
ConstructViewModelUsingArgumentOrDefaultConstructor | IViewModel | ||
DetermineInterestingViewProperties | List |
||
InitializeViewModelAsync | Task | ||
LogicBase | System | ||
OnTargetViewLoadedInternal | void | ||
OnTargetViewLoadingInternal | void | ||
OnTargetViewPropertyChangedInternal | void | ||
OnTargetViewUnloadedInternal | void | ||
OnTargetViewUnloadingInternal | void |
Method | Description | |
---|---|---|
CancelAndCloseViewModelAsync ( ) : Task |
Cancels and closes the view model.
|
|
CancelViewModelAsync ( ) : Task |
Cancels the view model.
|
|
CloseViewModelAsync ( bool result ) : Task |
Closes the view model.
|
|
OnTargetViewDataContextChanged ( object sender, DataContextChangedEventArgs e ) : void |
Called when the
|
|
OnTargetViewLoadedAsync ( object sender, |
Called when the TargetView has just been loaded.
|
|
OnTargetViewPropertyChanged ( object sender, |
Called when a property on the TargetView has changed.
|
|
OnTargetViewUnloadedAsync ( object sender, |
Called when the TargetView has just been unloaded.
|
|
OnViewLoadedManagerLoadedInternal ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is loaded.
|
|
OnViewLoadedManagerLoadingInternal ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloading.
|
|
OnViewLoadedManagerUnloadedInternal ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloaded.
|
|
OnViewLoadedManagerUnloadingInternal ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloading.
|
|
OnViewModelCanceledAsync ( object sender, |
Called when the ViewModel has been saved.
|
|
OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : Task |
Called when the ViewModel has been closed.
|
|
OnViewModelPropertyChanged ( object sender, |
Called when a property on the ViewModel has changed.
|
|
OnViewModelSavedAsync ( object sender, |
Called when the ViewModel has been saved.
|
|
SaveAndCloseViewModelAsync ( ) : Task |
Saves and closes the view model. If the saving fails, the view model is not closed.
|
|
SaveViewModelAsync ( ) : Task |
Saves the view model.
|
|
ValidateViewModel ( ) : bool |
Validates the view model.
|
Method | Description | |
---|---|---|
CompleteViewModelClosingAsync ( ) : Task |
Awaits until the closing of the view model is completed.
|
|
ConstructViewModelUsingArgumentOrDefaultConstructor ( object injectionObject ) : IViewModel |
Tries to construct the view model using the argument. If that fails, it will try to use the default constructor of the view model. If that is not available,
|
|
CreateViewModelByUsingDataContextOrConstructor ( ) : IViewModel |
Creates a view model by using data context or, if that is not possible, the constructor of the view model.
|
|
IsCurrentDataContext ( DataContextChangedEventArgs e ) : bool |
Gets a value indicating whether the specified arguments represent the current data context.
|
|
LogicBase ( IView targetView, |
Initializes a new instance of the LogicBase class.
|
|
OnViewLoadedManagerLoaded ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is loaded.
|
|
OnViewLoadedManagerLoading ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloading.
|
|
OnViewLoadedManagerUnloaded ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloaded.
|
|
OnViewLoadedManagerUnloading ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloading.
|
|
OnViewModelChanged ( ) : void |
Called when the ViewModel property has just been changed.
|
|
OnViewModelChanging ( ) : void |
Called when the ViewModel property is about to change.
|
|
SetDataContext ( object newDataContext ) : void |
Sets the data context of the target control.
|
Method | Description | |
---|---|---|
ConstructViewModelUsingArgumentOrDefaultConstructor ( object injectionObject, |
Tries to construct the view model using the argument. If that fails, it will try to use the default constructor of the view model. If that is not available,
|
|
DetermineInterestingViewProperties ( ) : List |
Determines the interesting view properties.
|
|
InitializeViewModelAsync ( ) : Task | ||
LogicBase ( ) : System |
Initializes static members of the LogicBase class.
|
|
OnTargetViewLoadedInternal ( object sender, |
Called when the TargetView has just been loaded. This method will call the OnTargetViewLoadedAsync which can be overriden for custom behavior. This method is required to protect from duplicate loaded events. |
|
OnTargetViewLoadingInternal ( object sender, |
Called when the TargetView is about to be loaded.
|
|
OnTargetViewPropertyChangedInternal ( object sender, |
Called when a property on the TargetView has changed.
|
|
OnTargetViewUnloadedInternal ( object sender, |
Called when the TargetView has just been unloaded. This method will call the OnTargetViewUnloadedAsync which can be overriden for custom behavior. This method is required to protect from duplicate unloaded events. |
|
OnTargetViewUnloadingInternal ( object sender, |
Called when the TargetView is about to be unloaded.
|
public CancelAndCloseViewModelAsync ( ) : Task |
||
return | Task |
public CloseViewModelAsync ( bool result ) : Task | ||
result | bool | |
return | Task |
protected CompleteViewModelClosingAsync ( ) : Task | ||
return | Task |
protected ConstructViewModelUsingArgumentOrDefaultConstructor ( object injectionObject ) : IViewModel | ||
injectionObject | object | The object that is injected into the view model constructor. |
return | IViewModel |
protected CreateViewModelByUsingDataContextOrConstructor ( ) : IViewModel | ||
return | IViewModel |
protected IsCurrentDataContext ( DataContextChangedEventArgs e ) : bool | ||
e | DataContextChangedEventArgs | |
return | bool |
protected LogicBase ( IView targetView, |
||
targetView | IView | The target control. |
viewModelType | Type of the view model. | |
viewModel | IViewModel | The view model. |
return | System |
public OnTargetViewDataContextChanged ( object sender, DataContextChangedEventArgs e ) : void | ||
sender | object | The sender. |
e | DataContextChangedEventArgs | The |
return | void |
public OnTargetViewLoadedAsync ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | Task |
public OnTargetViewPropertyChanged ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | void |
public OnTargetViewUnloadedAsync ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | Task |
protected OnViewLoadedManagerLoaded ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
public OnViewLoadedManagerLoadedInternal ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
protected OnViewLoadedManagerLoading ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
public OnViewLoadedManagerLoadingInternal ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
protected OnViewLoadedManagerUnloaded ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
public OnViewLoadedManagerUnloadedInternal ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
protected OnViewLoadedManagerUnloading ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
public OnViewLoadedManagerUnloadingInternal ( object sender, ViewLoadEventArgs e ) : void | ||
sender | object | The sender. |
e | ViewLoadEventArgs | The |
return | void |
public OnViewModelCanceledAsync ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | Task |
public OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : Task | ||
sender | object | The sender. |
e | ViewModelClosedEventArgs | The |
return | Task |
public OnViewModelPropertyChanged ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | void |
public OnViewModelSavedAsync ( object sender, |
||
sender | object | The sender. |
e | The |
|
return | Task |
protected abstract SetDataContext ( object newDataContext ) : void | ||
newDataContext | object | The new data context. |
return | void |
protected static IViewLoadManager ViewLoadManager | ||
return | IViewLoadManager |