C# Класс SilverlightFX.UserInterface.Interaction

A class providing various attached properties for creating interactivty.
Показать файл Открыть проект

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

Свойство Тип Описание
ActionProperty System.Windows.DependencyProperty
BehaviorsProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
TriggersProperty System.Windows.DependencyProperty
VisualStateProperty System.Windows.DependencyProperty

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

Метод Описание
GetAction ( System.Windows.Controls.Primitives.ButtonBase button ) : System.Windows.Interactivity.TriggerAction

Gets the action associated with the specified Button.

GetBehaviors ( DependencyObject o ) : BehaviorCollection

Gets the collection of behaviors for the specified DependencyObject.

GetCommand ( System.Windows.Controls.Primitives.ButtonBase button ) : string

Gets the command name associated with the specified Button.

GetTriggers ( DependencyObject o ) : System.Windows.Interactivity.TriggerCollection

Gets the collection of triggers for the specified DependencyObject.

GetVisualState ( Control control ) : string

Gets the visual state associated with the specified control.

SetAction ( System.Windows.Controls.Primitives.ButtonBase button, System.Windows.Interactivity.TriggerAction action ) : void

Sets the action associated with the specified Button.

SetBehaviors ( DependencyObject o, BehaviorCollection behaviors ) : void

Sets the collection of behaviors for the specified DependencyObject.

SetCommand ( System.Windows.Controls.Primitives.ButtonBase button, string commandName ) : void

Sets the name of the command associated with the specified Button.

SetTriggers ( DependencyObject o, System.Windows.Interactivity.TriggerCollection triggers ) : void

Sets the collection of triggers for the specified DependencyObject.

SetVisualState ( Control control, string state ) : void

Sets the current visual state of the specified control.

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

Метод Описание
OnVisualStateChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

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

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

Gets the action associated with the specified Button.
public static GetAction ( System.Windows.Controls.Primitives.ButtonBase button ) : System.Windows.Interactivity.TriggerAction
button System.Windows.Controls.Primitives.ButtonBase The Button to lookup.
Результат System.Windows.Interactivity.TriggerAction

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

Gets the collection of behaviors for the specified DependencyObject.
public static GetBehaviors ( DependencyObject o ) : BehaviorCollection
o System.Windows.DependencyObject The DependencyObject to lookup.
Результат BehaviorCollection

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

Gets the command name associated with the specified Button.
public static GetCommand ( System.Windows.Controls.Primitives.ButtonBase button ) : string
button System.Windows.Controls.Primitives.ButtonBase The Button to lookup.
Результат string

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

Gets the collection of triggers for the specified DependencyObject.
public static GetTriggers ( DependencyObject o ) : System.Windows.Interactivity.TriggerCollection
o System.Windows.DependencyObject The DependencyObject to lookup.
Результат System.Windows.Interactivity.TriggerCollection

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

Gets the visual state associated with the specified control.
public static GetVisualState ( Control control ) : string
control System.Windows.Controls.Control The control to lookup.
Результат string

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

Sets the action associated with the specified Button.
public static SetAction ( System.Windows.Controls.Primitives.ButtonBase button, System.Windows.Interactivity.TriggerAction action ) : void
button System.Windows.Controls.Primitives.ButtonBase The Button to associate the action with.
action System.Windows.Interactivity.TriggerAction The action to associate with the button.
Результат void

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

Sets the collection of behaviors for the specified DependencyObject.
public static SetBehaviors ( DependencyObject o, BehaviorCollection behaviors ) : void
o System.Windows.DependencyObject The DependencyObject to set.
behaviors BehaviorCollection The collection of behaviors to associate.
Результат void

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

Sets the name of the command associated with the specified Button.
public static SetCommand ( System.Windows.Controls.Primitives.ButtonBase button, string commandName ) : void
button System.Windows.Controls.Primitives.ButtonBase The Button to associate the command with.
commandName string The name of the command to associated.
Результат void

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

Sets the collection of triggers for the specified DependencyObject.
public static SetTriggers ( DependencyObject o, System.Windows.Interactivity.TriggerCollection triggers ) : void
o System.Windows.DependencyObject The DependencyObject to set.
triggers System.Windows.Interactivity.TriggerCollection The collection of triggers to associate.
Результат void

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

Sets the current visual state of the specified control.
public static SetVisualState ( Control control, string state ) : void
control System.Windows.Controls.Control The control to set.
state string The name of the state that the control should be in.
Результат void

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

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

Represents the Action attached property.
public static DependencyProperty,System.Windows ActionProperty
Результат System.Windows.DependencyProperty

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

Represents the Behaviors attached property.
public static DependencyProperty,System.Windows BehaviorsProperty
Результат System.Windows.DependencyProperty

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

Represents the Command attached property.
public static DependencyProperty,System.Windows CommandProperty
Результат System.Windows.DependencyProperty

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

Represents the Triggers attached property.
public static DependencyProperty,System.Windows TriggersProperty
Результат System.Windows.DependencyProperty

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

Represents the VisualState attached property.
public static DependencyProperty,System.Windows VisualStateProperty
Результат System.Windows.DependencyProperty