C# Класс Catel.MVVM.Views.WeakViewInfo

Class containing weak events for a IView. This way it is safe to subscribe to events of a IView without causing memory leaks.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
OnLayoutUpdated ( object sender, Object e ) : void

Called when the view layout is updated.

OnViewLoadStateLoaded ( object sender, global::Windows.UI.Xaml.RoutedEventArgs e ) : void

Called when the view is loaded.

OnViewLoadStateUnloaded ( object sender, global::Windows.UI.Xaml.RoutedEventArgs e ) : void

Called when the view is unloaded.

OnViewLoaded ( object sender, EventArgs e ) : void

Called when the view is loaded.

OnViewUnloaded ( object sender, EventArgs e ) : void

Called when the view is unloaded.

WeakViewInfo ( IView view, bool isViewLoaded = false ) : System

Initializes a new instance of the WeakViewInfo class.

WeakViewInfo ( IViewLoadState viewLoadState, bool isViewLoaded = false ) : System

Initializes a new instance of the WeakViewInfo class.

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

Метод Описание
Initialize ( object viewObject, bool isViewLoaded ) : void
OnLoaded ( ) : void
OnUnloaded ( ) : void

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

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

Called when the view layout is updated.
public OnLayoutUpdated ( object sender, Object e ) : void
sender object The sender.
e System.Object The instance containing the event data.
Результат void

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

Called when the view is loaded.
public OnViewLoadStateLoaded ( object sender, global::Windows.UI.Xaml.RoutedEventArgs e ) : void
sender object The sender.
e global::Windows.UI.Xaml.RoutedEventArgs The instance containing the event data.
Результат void

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

Called when the view is unloaded.
public OnViewLoadStateUnloaded ( object sender, global::Windows.UI.Xaml.RoutedEventArgs e ) : void
sender object The sender.
e global::Windows.UI.Xaml.RoutedEventArgs The instance containing the event data.
Результат void

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

Called when the view is loaded.
public OnViewLoaded ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The instance containing the event data.
Результат void

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

Called when the view is unloaded.
public OnViewUnloaded ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The instance containing the event data.
Результат void

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

Initializes a new instance of the WeakViewInfo class.
The is null.
public WeakViewInfo ( IView view, bool isViewLoaded = false ) : System
view IView The view.
isViewLoaded bool if set to true, the view is already loaded.
Результат System

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

Initializes a new instance of the WeakViewInfo class.
The is null.
public WeakViewInfo ( IViewLoadState viewLoadState, bool isViewLoaded = false ) : System
viewLoadState IViewLoadState The view load state.
isViewLoaded bool if set to true, the view is already loaded.
Результат System