C# Class 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.
Show file Open project: Catel/Catel Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
Initialize ( object viewObject, bool isViewLoaded ) : void
OnLoaded ( ) : void
OnUnloaded ( ) : void

Method Details

OnLayoutUpdated() public method

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.
return void

OnViewLoadStateLoaded() public method

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.
return void

OnViewLoadStateUnloaded() public method

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.
return void

OnViewLoaded() public method

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.
return void

OnViewUnloaded() public method

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.
return void

WeakViewInfo() public method

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.
return System

WeakViewInfo() public method

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.
return System