Method | Description | |
---|---|---|
OnTargetViewDataContextChanged ( object sender, Catel e ) : void |
Called when the
|
|
OnTargetViewLoadedAsync ( object sender, EventArgs e ) : Task |
Called when the
|
|
OnTargetViewUnloadedAsync ( object sender, EventArgs e ) : Task |
Called when the
|
|
UserControlLogic ( IView targetView, Type viewModelType = null, IViewModel viewModel = null ) : System |
Initializes a new instance of the UserControlLogic class.
|
Method | Description | |
---|---|---|
OnViewLoadedManagerLoading ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is loading.
|
|
OnViewLoadedManagerUnloading ( object sender, ViewLoadEventArgs e ) : void |
Called when the view manager is unloading.
|
|
OnViewModelChanged ( ) : void |
Called when the LogicBase.ViewModel property has just been changed.
|
|
OnViewModelChanging ( ) : void |
Called when the LogicBase.ViewModel property is about to change.
|
|
SetDataContext ( object newDataContext ) : void |
Sets the data context of the target control.
|
Method | Description | |
---|---|---|
ClearWarningsAndErrorsForObject ( object obj ) : void |
Clears the warnings and errors for the specified object. Since there is a "bug" in the .NET Framework (DataContext issue), this method clears the current warnings and errors in the InfoBarMessageControl if available. |
|
CloseAndDisposeViewModelAsync ( bool result ) : Task |
Closes and disposes the current view model.
|
|
CreateViewModelWrapper ( bool checkIfWrapped = true ) : void |
Creates the view model wrapper.
|
|
GetViewModelResultValueFromUnloadBehavior ( ) : bool? |
Gets the view model result value based on the UnloadBehavior property so it can be used for the CloseAndDisposeViewModelAsync method.
|
|
OnParentViewModelCancelingAsync ( object sender, CancelingEventArgs e ) : Task |
Handles the Canceling event of the parent ViewModel.
|
|
OnParentViewModelClosingAsync ( object sender, EventArgs e ) : Task |
Called when Closing event of the parent ViewModel.
|
|
OnParentViewModelContainerLoading ( object sender, EventArgs e ) : void | ||
OnParentViewModelContainerUnloading ( object sender, EventArgs e ) : void | ||
OnParentViewModelContainerViewModelChanged ( object sender, EventArgs e ) : void |
Handles the ViewModelChanged event of the parent ViewModel container.
|
|
OnParentViewModelSavingAsync ( object sender, SavingEventArgs e ) : Task |
Handles the Saving event of the parent ViewModel.
|
|
OnTargetControlContentChanged ( object sender, PropertyChangedEventArgs e ) : void |
Called when the content of the target control has changed.
|
|
RegisterViewModelAsChild ( ) : void |
Registers the view model as child on the parent view model.
|
|
SubscribeToParentViewModel ( IViewModel parentViewModel ) : void |
Subscribes to a parent view model.
|
|
SubscribeToParentViewModelContainer ( ) : void |
Subscribes to the parent view model container.
|
|
UnregisterViewModelAsChild ( ) : void |
Unregisters the view model as child on the parent view model.
|
|
UnsubscribeFromParentViewModel ( ) : void |
Unsubscribes from a parent view model.
|
|
UnsubscribeFromParentViewModelContainer ( ) : void |
Unsubscribes from the parent view model container.
|
|
UpdateDataContextToUseViewModelAsync ( object newDataContext ) : Task |
Updates the data context to use view model.
|
|
UserControlLogic ( ) : System |
Initializes static members of the UserControlLogic class.
|
public OnTargetViewDataContextChanged ( object sender, Catel e ) : void | ||
sender | object | The sender. |
e | Catel | The |
return | void |
public OnTargetViewLoadedAsync ( object sender, EventArgs e ) : Task | ||
sender | object | The sender. |
e | EventArgs | The |
return | Task |
public OnTargetViewUnloadedAsync ( object sender, EventArgs e ) : Task | ||
sender | object | The sender. |
e | EventArgs | The |
return | Task |
protected OnViewLoadedManagerLoading ( 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 |
protected SetDataContext ( object newDataContext ) : void | ||
newDataContext | object | The new data context. |
return | void |
public UserControlLogic ( IView targetView, Type viewModelType = null, IViewModel viewModel = null ) : System | ||
targetView | IView | The target control. |
viewModelType | Type | Type of the view model. |
viewModel | IViewModel | The view model. |
return | System |