C# Класс Catel.Android.App.Activity

View implementation that automatically takes care of view models.
Наследование: global::Android.App.Activity, IPage
Показать файл Открыть проект

Открытые методы

Метод Описание
Activity ( ) : System

Initializes a new instance of the Activity class.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
InitializeBindingContext ( ) : void
OnBindingUpdateRequired ( object sender, EventArgs e ) : void
RaiseViewModelChanged ( ) : void
UninitializeBindingContext ( ) : void

Описание методов

Activity() публичный Метод

Initializes a new instance of the Activity class.
public Activity ( ) : System
Результат System

AddBindings() защищенный Метод

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.
Результат void

OnPause() защищенный Метод

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.
protected OnPause ( ) : void
Результат void

OnPropertyChanged() защищенный Метод

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.
Результат void

OnResume() защищенный Метод

Called when the view is loaded.
protected OnResume ( ) : void
Результат void

OnViewModelChanged() защищенный Метод

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
Результат void

OnViewModelPropertyChanged() защищенный Метод

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.
Результат void