C# Class Catel.Android.App.Activity

View implementation that automatically takes care of view models.
Inheritance: global::Android.App.Activity, IPage
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode Description
Activity ( ) : System

Initializes a new instance of the Activity class.

Méthodes protégées

Méthode Description
AddBindings ( BindingContext bindingContext, IViewModel viewModel ) : void

Called when the bindings must be added. This can happen Normally the binding system would take care of this.

OnPause ( ) : void

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Called when a dependency property on this control has changed.

OnResume ( ) : void

Called when the view is loaded.

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.

OnViewModelPropertyChanged ( PropertyChangedEventArgs e ) : void

Called when a property on the current ViewModel has changed.

Private Methods

Méthode Description
InitializeBindingContext ( ) : void
OnBindingUpdateRequired ( object sender, EventArgs e ) : void
RaiseViewModelChanged ( ) : void
UninitializeBindingContext ( ) : void

Method Details

Activity() public méthode

Initializes a new instance of the Activity class.
public Activity ( ) : System
Résultat System

AddBindings() protected méthode

Called when the bindings must be added. This can happen Normally the binding system would take care of this.
protected AddBindings ( BindingContext bindingContext, IViewModel viewModel ) : void
bindingContext BindingContext The binding context.
viewModel IViewModel The view model.
Résultat void

OnPause() protected méthode

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.
protected OnPause ( ) : void
Résultat void

OnPropertyChanged() protected méthode

Called when a dependency property on this control has changed.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The instance containing the event data.
Résultat void

OnResume() protected méthode

Called when the view is loaded.
protected OnResume ( ) : void
Résultat void

OnViewModelChanged() protected méthode

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.
protected OnViewModelChanged ( ) : void
Résultat void

OnViewModelPropertyChanged() protected méthode

Called when a property on the current ViewModel has changed.
protected OnViewModelPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The instance containing the event data.
Résultat void