C# Class AttachedCommandBehavior.CommandBehavior

Defines the attached properties to create a CommandBehaviorBinding
Datei anzeigen Open project: dotob/moni

Public Properties

Property Type Description
ActionProperty System.Windows.DependencyProperty
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
EventProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetAction ( DependencyObject d ) : Action

Gets the Action property.

GetCommand ( DependencyObject d ) : ICommand

Gets the Command property.

GetCommandParameter ( DependencyObject d ) : object

Gets the CommandParameter property.

GetEvent ( DependencyObject d ) : string

Gets the Event property. This dependency property indicates ....

SetAction ( DependencyObject d, Action value ) : void

Sets the Action property.

SetCommand ( DependencyObject d, ICommand value ) : void

Sets the Command property.

SetCommandParameter ( DependencyObject d, object value ) : void

Sets the CommandParameter property.

SetEvent ( DependencyObject d, string value ) : void

Sets the Event property. This dependency property indicates ....

Private Methods

Method Description
FetchOrCreateBinding ( DependencyObject d ) : CommandBehaviorBinding
GetBehavior ( DependencyObject d ) : CommandBehaviorBinding

Gets the Behavior property.

OnActionChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Action property.

OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Command property.

OnCommandParameterChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CommandParameter property.

OnEventChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Event property.

SetBehavior ( DependencyObject d, CommandBehaviorBinding value ) : void

Sets the Behavior property.

Method Details

GetAction() public static method

Gets the Action property.
public static GetAction ( DependencyObject d ) : Action
d System.Windows.DependencyObject
return Action

GetCommand() public static method

Gets the Command property.
public static GetCommand ( DependencyObject d ) : ICommand
d System.Windows.DependencyObject
return ICommand

GetCommandParameter() public static method

Gets the CommandParameter property.
public static GetCommandParameter ( DependencyObject d ) : object
d System.Windows.DependencyObject
return object

GetEvent() public static method

Gets the Event property. This dependency property indicates ....
public static GetEvent ( DependencyObject d ) : string
d System.Windows.DependencyObject
return string

SetAction() public static method

Sets the Action property.
public static SetAction ( DependencyObject d, Action value ) : void
d System.Windows.DependencyObject
value Action
return void

SetCommand() public static method

Sets the Command property.
public static SetCommand ( DependencyObject d, ICommand value ) : void
d System.Windows.DependencyObject
value ICommand
return void

SetCommandParameter() public static method

Sets the CommandParameter property.
public static SetCommandParameter ( DependencyObject d, object value ) : void
d System.Windows.DependencyObject
value object
return void

SetEvent() public static method

Sets the Event property. This dependency property indicates ....
public static SetEvent ( DependencyObject d, string value ) : void
d System.Windows.DependencyObject
value string
return void

Property Details

ActionProperty public_oe static_oe property

Action Attached Dependency Property
public static DependencyProperty,System.Windows ActionProperty
return System.Windows.DependencyProperty

CommandParameterProperty public_oe static_oe property

CommandParameter Attached Dependency Property
public static DependencyProperty,System.Windows CommandParameterProperty
return System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

Command Attached Dependency Property
public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

EventProperty public_oe static_oe property

Event Attached Dependency Property
public static DependencyProperty,System.Windows EventProperty
return System.Windows.DependencyProperty