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.
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
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