Méthode | Description | |
---|---|---|
UserControl ( ) : System |
Initializes a new instance of the UserControl class. This method is required for design time support. |
|
UserControl ( IViewModel viewModel ) : System |
Initializes a new instance of the UserControl class.
|
Méthode | Description | |
---|---|---|
OnLoaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void |
Called when the user control is loaded.
|
|
OnPropertyChanged ( |
Called when a dependency property on this control has changed.
|
|
OnUnloaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void |
Called when the user control is unloaded.
|
|
OnViewModelChanged ( ) : void |
Called when the ViewModel has changed. This method does not implement any logic and saves a developer from subscribing/unsubscribing to the ViewModelChanged event inside the same user control. |
|
OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task |
Called when the ViewModel has been closed.
|
|
OnViewModelPropertyChanged ( |
Called when a property on the current ViewModel has changed.
|
Méthode | Description | |
---|---|---|
OnViewModelClosed ( object sender, ViewModelClosedEventArgs e ) : void | ||
RaiseViewModelChanged ( ) : void |
protected OnLoaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void | ||
e | global::Windows.UI.Xaml.RoutedEventArgs | The |
Résultat | void |
protected OnPropertyChanged ( |
||
e | The |
|
Résultat | void |
protected OnUnloaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void | ||
e | global::Windows.UI.Xaml.RoutedEventArgs | The |
Résultat | void |
protected OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task | ||
sender | object | The sender. |
e | ViewModelClosedEventArgs | The |
Résultat | System.Threading.Tasks.Task |
protected OnViewModelPropertyChanged ( |
||
e | The |
|
Résultat | void |
public UserControl ( IViewModel viewModel ) : System | ||
viewModel | IViewModel | The view model. |
Résultat | System |