C# Class MVVMUndoRedo.CreateCommandContext

ファイルを表示 Open project: danice/MVVMUndoRedo

Public Properties

Property Type Description
ContextProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetContext ( UIElement element ) : ICommandContext
SetContext ( UIElement element, ICommandContext commandContext ) : void

Private Methods

Method Description
OnCommandInvalidated ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Callback when the Command property is set or changed.

Method Details

GetContext() public static method

public static GetContext ( UIElement element ) : ICommandContext
element System.Windows.UIElement
return ICommandContext

SetContext() public static method

public static SetContext ( UIElement element, ICommandContext commandContext ) : void
element System.Windows.UIElement
commandContext ICommandContext
return void

Property Details

ContextProperty public_oe static_oe property

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