C# Class BellaCode.Mvvm.ViewModelScope

A decorator that sets that DataContext of the child to be a view model. The view model receives the previous DataContext as its model.
Inheritance: System.Windows.Controls.Decorator
显示文件 Open project: BellaCode/MVVM

Public Properties

Property Type Description
FactoryContextProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AttachViewModel void
DetachViewModel void
OnChildChanged void
UpdateModel void
ViewModelScope System
ViewModelScope_DataContextChanged void
ViewModelScope_Loaded void
ViewModelScope_Unloaded void

Private Methods

Method Description
AttachViewModel ( ) : void
DetachViewModel ( ) : void
OnChildChanged ( UIElement oldValue, UIElement newValue ) : void
UpdateModel ( ) : void
ViewModelScope ( ) : System
ViewModelScope_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ViewModelScope_Loaded ( object sender, RoutedEventArgs e ) : void
ViewModelScope_Unloaded ( object sender, RoutedEventArgs e ) : void

Property Details

FactoryContextProperty public_oe static_oe property

public static DependencyProperty,System.Windows FactoryContextProperty
return System.Windows.DependencyProperty