C# Класс AttachedCommandBehavior.CommandBehavior

Defines the attached properties to create a CommandBehaviorBinding
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ActionProperty System.Windows.DependencyProperty
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
EventProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
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 ....

Приватные методы

Метод Описание
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.

Описание методов

GetAction() публичный статический Метод

Gets the Action property.
public static GetAction ( DependencyObject d ) : Action
d System.Windows.DependencyObject
Результат Action

GetCommand() публичный статический Метод

Gets the Command property.
public static GetCommand ( DependencyObject d ) : ICommand
d System.Windows.DependencyObject
Результат ICommand

GetCommandParameter() публичный статический Метод

Gets the CommandParameter property.
public static GetCommandParameter ( DependencyObject d ) : object
d System.Windows.DependencyObject
Результат object

GetEvent() публичный статический Метод

Gets the Event property. This dependency property indicates ....
public static GetEvent ( DependencyObject d ) : string
d System.Windows.DependencyObject
Результат string

SetAction() публичный статический Метод

Sets the Action property.
public static SetAction ( DependencyObject d, Action value ) : void
d System.Windows.DependencyObject
value Action
Результат void

SetCommand() публичный статический Метод

Sets the Command property.
public static SetCommand ( DependencyObject d, ICommand value ) : void
d System.Windows.DependencyObject
value ICommand
Результат void

SetCommandParameter() публичный статический Метод

Sets the CommandParameter property.
public static SetCommandParameter ( DependencyObject d, object value ) : void
d System.Windows.DependencyObject
value object
Результат void

SetEvent() публичный статический Метод

Sets the Event property. This dependency property indicates ....
public static SetEvent ( DependencyObject d, string value ) : void
d System.Windows.DependencyObject
value string
Результат void

Описание свойств

ActionProperty публичное статическое свойство

Action Attached Dependency Property
public static DependencyProperty,System.Windows ActionProperty
Результат System.Windows.DependencyProperty

CommandParameterProperty публичное статическое свойство

CommandParameter Attached Dependency Property
public static DependencyProperty,System.Windows CommandParameterProperty
Результат System.Windows.DependencyProperty

CommandProperty публичное статическое свойство

Command Attached Dependency Property
public static DependencyProperty,System.Windows CommandProperty
Результат System.Windows.DependencyProperty

EventProperty публичное статическое свойство

Event Attached Dependency Property
public static DependencyProperty,System.Windows EventProperty
Результат System.Windows.DependencyProperty