C# 클래스 Catel.Windows.Controls.UserControl.UserControl

상속: System.Windows.Controls.UserControl, IUserControl
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
UserControl ( ) : System

Initializes a new instance of the UserControl class.

This method is required for design time support.

UserControl ( IViewModel viewModel ) : System

Initializes a new instance of the UserControl class.

보호된 메소드들

메소드 설명
OnLoaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void

Called when the user control is loaded.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Called when a dependency property on this control has changed.

OnUnloaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void

Called when the user control is unloaded.

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.

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

Called when the ViewModel has been closed.

OnViewModelPropertyChanged ( PropertyChangedEventArgs e ) : void

Called when a property on the current ViewModel has changed.

비공개 메소드들

메소드 설명
OnViewModelClosed ( object sender, ViewModelClosedEventArgs e ) : void
RaiseViewModelChanged ( ) : void

메소드 상세

OnLoaded() 보호된 메소드

Called when the user control is loaded.
protected OnLoaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void
e global::Windows.UI.Xaml.RoutedEventArgs The instance containing the event data.
리턴 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

OnUnloaded() 보호된 메소드

Called when the user control is unloaded.
protected OnUnloaded ( global::Windows.UI.Xaml.RoutedEventArgs e ) : void
e global::Windows.UI.Xaml.RoutedEventArgs The instance containing the event data.
리턴 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

OnViewModelClosedAsync() 보호된 메소드

Called when the ViewModel has been closed.
protected 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

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

UserControl() 공개 메소드

Initializes a new instance of the UserControl class.
This method is required for design time support.
public UserControl ( ) : System
리턴 System

UserControl() 공개 메소드

Initializes a new instance of the UserControl class.
public UserControl ( IViewModel viewModel ) : System
viewModel IViewModel The view model.
리턴 System