C# Class SilverlightFX.UserInterface.Interaction

A class providing various attached properties for creating interactivty.
Exibir arquivo Open project: nikhilk/silverlightfx

Public Properties

Property Type Description
ActionProperty System.Windows.DependencyProperty
BehaviorsProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
TriggersProperty System.Windows.DependencyProperty
VisualStateProperty System.Windows.DependencyProperty

Public Methods

Method Description
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.

Private Methods

Method Description
OnVisualStateChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

GetAction() public static method

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.
return System.Windows.Interactivity.TriggerAction

GetBehaviors() public static method

Gets the collection of behaviors for the specified DependencyObject.
public static GetBehaviors ( DependencyObject o ) : BehaviorCollection
o System.Windows.DependencyObject The DependencyObject to lookup.
return BehaviorCollection

GetCommand() public static method

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.
return string

GetTriggers() public static method

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.
return System.Windows.Interactivity.TriggerCollection

GetVisualState() public static method

Gets the visual state associated with the specified control.
public static GetVisualState ( Control control ) : string
control System.Windows.Controls.Control The control to lookup.
return string

SetAction() public static method

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.
return void

SetBehaviors() public static method

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.
return void

SetCommand() public static method

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.
return void

SetTriggers() public static method

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.
return void

SetVisualState() public static method

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.
return void

Property Details

ActionProperty public_oe static_oe property

Represents the Action attached property.
public static DependencyProperty,System.Windows ActionProperty
return System.Windows.DependencyProperty

BehaviorsProperty public_oe static_oe property

Represents the Behaviors attached property.
public static DependencyProperty,System.Windows BehaviorsProperty
return System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

Represents the Command attached property.
public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

TriggersProperty public_oe static_oe property

Represents the Triggers attached property.
public static DependencyProperty,System.Windows TriggersProperty
return System.Windows.DependencyProperty

VisualStateProperty public_oe static_oe property

Represents the VisualState attached property.
public static DependencyProperty,System.Windows VisualStateProperty
return System.Windows.DependencyProperty