C# 클래스 Catel.MVVM.Providers.WindowLogic

MVVM Provider behavior implementation for a window.
상속: LogicBase
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

Private Properties

프로퍼티 타입 설명
InvokeCloseDynamically void

공개 메소드들

메소드 설명
OnTargetViewUnloadedAsync ( object sender, EventArgs e ) : System.Threading.Tasks.Task

Called when LogicBase.TargetView has just been unloaded.

OnTargetWindowClosed ( ) : void

Called when the TargetWindow has been closed.

Public to allow the generated ILGenerator to access this method.

OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task

Called when the LogicBase.ViewModel is closed.

WindowLogic ( IView targetWindow, Type viewModelType = null, IViewModel viewModel = null ) : System

Initializes a new instance of the WindowLogic class.

보호된 메소드들

메소드 설명
SetDataContext ( object newDataContext ) : void

Sets the data context of the target control. This method is abstract because the real logic implementation knows how to set the data context (for example, by using an additional data context grid).

비공개 메소드들

메소드 설명
InvokeCloseDynamically ( ) : void

Invokes the close method on the window dynamically.

메소드 상세

OnTargetViewUnloadedAsync() 공개 메소드

Called when LogicBase.TargetView has just been unloaded.
public OnTargetViewUnloadedAsync ( object sender, EventArgs e ) : System.Threading.Tasks.Task
sender object The sender.
e System.EventArgs The instance containing the event data.
리턴 System.Threading.Tasks.Task

OnTargetWindowClosed() 공개 메소드

Called when the TargetWindow has been closed.
Public to allow the generated ILGenerator to access this method.
public OnTargetWindowClosed ( ) : void
리턴 void

OnViewModelClosedAsync() 공개 메소드

Called when the LogicBase.ViewModel is closed.
public OnViewModelClosedAsync ( object sender, ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task
sender object The sender.
e ViewModelClosedEventArgs The instance containing the event data.
리턴 System.Threading.Tasks.Task

SetDataContext() 보호된 메소드

Sets the data context of the target control. This method is abstract because the real logic implementation knows how to set the data context (for example, by using an additional data context grid).
protected SetDataContext ( object newDataContext ) : void
newDataContext object The new data context.
리턴 void

WindowLogic() 공개 메소드

Initializes a new instance of the WindowLogic class.
The is null.
public WindowLogic ( IView targetWindow, Type viewModelType = null, IViewModel viewModel = null ) : System
targetWindow IView The window this provider should take care of.
viewModelType System.Type Type of the view model.
viewModel IViewModel The view model to inject.
리턴 System