System.Windows.Interactivity
Represents a collection of IAttachedObject with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
An interface for an object that can be attached to another object.
Attaches to the specified object.
The object to attach to.
Detaches this instance from its associated object.
Gets the associated object.
The associated object.
Represents the object the instance is attached to.
Initializes a new instance of the class.
Internal, because this should not be inherited outside this assembly.
Called immediately after the collection is attached to an AssociatedObject.
Called when the collection is being detached from its AssociatedObject, but before it has actually occurred.
Called when a new item is added to the collection.
The new item.
Called when an item is removed from the collection.
The removed item.
Cannot add the instance to a collection more than once.
Attaches to the specified object.
The object to attach to.
The IAttachedObject is already attached to a different object.
Detaches this instance from its associated object.
The object on which the collection is hosted.
Gets the associated object.
The associated object.
Encapsulates state information and zero or more ICommands into an attachable object.
The type the can be attached to.
Behavior is the base class for providing attachable state and commands to an object.
The types the Behavior can be attached to can be controlled by the generic parameter.
Override OnAttached() and OnDetaching() methods to hook and unhook any necessary handlers
from the AssociatedObject.
Encapsulates state information and zero or more ICommands into an attachable object.
This is an infrastructure class. Behavior authors should derive from Behavior<T> instead of from this class.
Called after the behavior is attached to an AssociatedObject.
Override this to hook up functionality to the AssociatedObject.
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
Override this to unhook functionality from the AssociatedObject.
Attaches to the specified object.
The object to attach to.
The Behavior is already hosted on a different element.
dependencyObject does not satisfy the Behavior type constraint.
Detaches this instance from its associated object.
The type to which this behavior can be attached.
Gets the object to which this behavior is attached.
Gets the associated object.
The associated object.
Initializes a new instance of the class.
Gets the object to which this is attached.
Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
Initializes a new instance of the class.
Internal, because this should not be inherited outside this assembly.
Called immediately after the collection is attached to an AssociatedObject.
Called when the collection is being detached from its AssociatedObject, but before it has actually occurred.
Called when a new item is added to the collection.
The new item.
Called when an item is removed from the collection.
The removed item.
Creates a new instance of the BehaviorCollection.
The new instance.
Enumerates possible values for reusable property value editors.
Uses the element picker, if supported, to edit this property at design time.
Uses the storyboard picker, if supported, to edit this property at design time.
Uses the state picker, if supported, to edit this property at design time.
Associates the given editor type with the property on which the CustomPropertyValueEditor is applied.
Use this attribute to get improved design-time editing for properties that denote element (by name), storyboards, or states (by name).
Initializes a new instance of the class.
The custom property value editor.
Gets or sets the custom property value editor.
The custom property value editor.
Provides design tools information about what to instantiate for a given action or command.
Initializes a new instance of the class.
The type this attribute applies to.
The type of to instantiate.
A single argument for the specified .
is not derived from TriggerBase.
This constructor is useful if the specifed has a single argument. The
resulting code will be CLS compliant.
Initializes a new instance of the class.
The type this attribute applies to.
The type of to instantiate.
The constructor arguments for the specified .
is not derived from TriggerBase.
Instantiates this instance.
The specified by the DefaultTriggerAttribute.
Gets the type that this DefaultTriggerAttribute applies to.
The type this DefaultTriggerAttribute applies to.
Gets the type of the to instantiate.
The type of the to instantiate.
Gets the parameters to pass to the constructor.
The parameters to pass to the constructor.
A trigger that listens for a specified event on its source and fires when that event is fired.
Represents a trigger that can listen to an element other than its AssociatedObject.
The type that this trigger can be associated with.
EventTriggerBase extends TriggerBase to add knowledge of another element than the one it is attached to.
This allows a user to attach a Trigger/Action pair to one element and invoke the Action in response to a
change in another element somewhere else. Override OnSourceChanged to hook or unhook handlers on the source
element, and OnAttached/OnDetaching for the associated element. The type of the Source element can be
constrained by the generic type parameter. If you need control over the type of the
AssociatedObject, set a TypeConstraintAttribute on your derived type.
Represents a trigger that can listen to an element other than its AssociatedObject.
This is an infrastructure class. Trigger authors should derive from EventTriggerBase<T> instead of this class.
Represents an object that can invoke Actions conditionally.
This is an infrastructure class. Trigger authors should derive from Trigger<T> instead of this class.
Invoke all Actions associated with this trigger.
Derived classes should call this to fire the trigger.
Called after the trigger is attached to an AssociatedObject.
Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.
Creates a new instance of the TriggerBase derived class.
The new instance.
Attaches to the specified object.
The object to attach to.
Cannot host the same Trigger on more than one object at a time.
dependencyObject does not satisfy the Trigger type constraint.
Detaches this instance from its associated object.
Gets the object to which the trigger is attached.
The associated object.
Gets the type constraint of the associated object.
The associated object type constraint.
Gets the actions associated with this trigger.
The actions associated with this trigger.
Gets the associated object.
The associated object.
Specifies the name of the Event this EventTriggerBase is listening for.
Called when the event associated with this EventTriggerBase is fired. By default, this will invoke all actions on the trigger.
The instance containing the event data.
Override this to provide more granular control over when actions associated with this trigger will be invoked.
Called when the source changes.
The old source.
The new source.
This function should be overridden in derived classes to hook functionality to and unhook functionality from the changing source objects.
Called after the trigger is attached to an AssociatedObject.
Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.
Could not find eventName on the Target.
Gets the type constraint of the associated object.
The associated object type constraint.
Define a TypeConstraintAttribute on a derived type to constrain the types it may be attached to.
Gets the source type constraint.
The source type constraint.
Gets or sets the name of the element this EventTriggerBase listens for as a source. If the name is unset or cannot be resolved, the AssociatedObject will be used. This is a dependency property.
The name of the source element.
Gets the resolved source. If is unset or cannot be resolved, defaults to AssociatedObject.
The resolved source object.
In general, this property should be used in place of AssociatedObject in derived classes.
The element pointed to by does not satisify the type constraint.
Initializes a new instance of the class.
Called when the source property changes.
Override this to hook functionality to and unhook functionality from the specified Source, rather than the AssociatedObject.
The old source.
The new source.
Gets the resolved source. If is not set or cannot be resolved, defaults to AssociatedObject.
The resolved source object.
In general, this property should be used in place of AssociatedObject in derived classes.
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the event.
Gets or sets the name of the event to listen for. This is a dependency property.
The name of the event.
Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.
This property is used as the internal backing store for the public Triggers attached property.
This property is not exposed publicly. This forces clients to use the GetTriggers and SetTriggers methods to access the
collection, ensuring the collection exists and is set before it is used.
This property is used as the internal backing store for the public Behaviors attached property.
This property is not exposed publicly. This forces clients to use the GetBehaviors and SetBehaviors methods to access the
collection, ensuring the collection exists and is set before it is used.
Gets the TriggerCollection containing the triggers associated with the specified object.
The object from which to retrieve the triggers.
A TriggerCollection containing the triggers associated with the specified object.
Gets the associated with a specified object.
The object from which to retrieve the .
A containing the behaviors associated with the specified object.
Cannot host the same BehaviorCollection on more than one object at a time.
Cannot host the same TriggerCollection on more than one object at a time.
A helper function to take the place of FrameworkElement.IsLoaded, as Silverlight doesn't have a property like that.
The element of interest.
True if the element has been loaded; otherwise, false
Gets or sets a value indicating whether to run as if in design mode.
true if [should run in design mode]; otherwise, false.
Not to be used outside unit tests.
Executes a specified Action on the host Behavior when invoked.
Represents an attachable object that encapsulates a unit of functionality.
The type to which this action can be attached.
Represents an attachable object that encapsulates a unit of functionality.
This is an infrastructure class. Action authors should derive from TriggerAction<T> instead of this class.
Attempts to invoke the action.
The parameter to the action. If the Action does not require a parameter, the parameter may be set to a null reference.
Invokes the action.
The parameter to the action. If the Action does not require a parameter, the parameter may be set to a null reference.
Called after the action is attached to an AssociatedObject.
Called when the action is being detached from its AssociatedObject, but before it has actually occurred.
When implemented in a derived class, creates a new instance of the derived class.
The new instance.
Attaches to the specified object.
The object to attach to.
Cannot host the same TriggerAction on more than one object at a time.
dependencyObject does not satisfy the TriggerAction type constraint.
Detaches this instance from its associated object.
Gets or sets a value indicating whether this action will run when invoked. This is a dependency property.
true if this action will be run when invoked; otherwise, false.
Gets the object to which this Action is attached.
The associated object.
Gets the associated object type constraint.
The associated object type constraint.
Gets or sets a value indicating whether this instance is attached.
true if this instance is attached; otherwise, false.
Gets the associated object.
The associated object.
Initializes a new instance of the class.
Gets the object to which this is attached.
The associated object.
Gets the associated object type constraint.
The associated object type constraint.
Invokes the action.
The parameter to the action. If the Action does not require a parameter, the parameter may be set to a null reference.
Called after the collection is attached to an AssociatedObject.
InvokeActionCommand must be hosted on a Behavior.
Gets or sets the name of the command this action should invoke.
The name of the command this action should invoke.
Gets or sets the command parameter.
The command parameter.
This is the value passed to ICommand.CanExecute and ICommand.Execute.
Provides data about which objects were affected when resolving a name change.
Helper class to handle the logic of resolving a TargetName into a Target element
based on the context provided by a host element.
Attempts to update the resolved object from the name within the context of the namescope reference element.
The old resolved object.
Resets the existing target and attempts to resolve the current TargetName from the
context of the current Host. If it cannot resolve from the context of Host, it will
continue up the visual tree until it resolves. If it has not resolved it when it reaches
the root, it will set the Target to null and write a warning message to Debug output.
Occurs when the resolved element has changed.
Gets or sets the name of the element to attempt to resolve.
The name to attempt to resolve.
The resolved object. Will return the reference element is TargetName is null or empty, or if a resolve has not been attempted.
Gets or sets the reference element from which to perform the name resolution.
The reference element.
Gets or sets a value indicating whether the reference element load is pending.
true if [pending reference element load]; otherwise, false.
If the Host has not been loaded, the name will not be resolved.
In that case, delay the resolution and track that fact with this property.
Represents an action that can be targeted to affect an object other than its AssociatedObject.
The type constraint on the target.
TargetedTriggerAction extends TriggerAction to add knowledge of another element than the one it is attached to.
This allows a user to invoke the Action on an element other than the one it is attached to in response to a
Trigger firing. Override OnTargetChanged to hook or unhook handlers on the target element, and OnAttached/OnDetaching
for the associated element. The type of the Target element can be constrained by the generic type parameter. If
you need control over the type of the AssociatedObject, set a TypeConstraintAttribute on your derived type.
Represents an action that can be targeted to affect an object other than its AssociatedObject.
This is an infrastructure class. Action authors should derive from TargetedTriggerAction<T> instead of this class.
Called when the target changes.
The old target.
The new target.
This function should be overriden in derived classes to hook and unhook functionality from the changing source objects.
Called after the action is attached to an AssociatedObject.
Called when the action is being detached from its AssociatedObject, but before it has actually occurred.
Gets or sets the name of the target. If TargetName is unset or cannot be resolved, the target will default to the AssociatedObject. This is a dependency property.
The name of the target.
Gets the target object. If TargetName is unset or cannot be resolved, defaults to the AssociatedObject.
The target.
In general, this property should be used in place of AssociatedObject in derived classes.
The Target element does not satisfy the type constraint.
Gets the associated object type constraint.
The associated object type constraint.
Define a TypeConstraintAttribute on a derived type to constrain the types it may be attached to.
Gets the target type constraint.
The target type constraint.
Initializes a new instance of the class.
Called when the target property changes.
Override this to hook and unhook functionality on the specified Target, rather than the AssociatedObject.
The old target.
The new target.
Gets the target object. If TargetName is unset or cannot be resolved, defaults to the AssociatedObject.
The target.
In general, this property should be used in place of AssociatedObject in derived classes.
Represents a collection of actions with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
Initializes a new instance of the class.
Internal, because this should not be inherited outside this assembly.
Called immediately after the collection is attached to an AssociatedObject.
Called when the collection is being detached from its AssociatedObject, but before it has actually occurred.
Called when a new item is added to the collection.
The new item.
Called when an item is removed from the collection.
The removed item.
Creates a new instance of the TriggerActionCollection.
The new instance.
Represents an object that can invoke Actions conditionally.
The type to which this trigger can be attached.
TriggerBase is the base class for controlling Actions. Override OnAttached() and
OnDetaching() to hook and unhook handlers on the AssociatedObject. You may
constrain the types that a derived TriggerBase may be attached to by specifying
the generic parameter. Call InvokeActions() to fire all Actions associated with
this TriggerBase.
Initializes a new instance of the class.
Gets the object to which the trigger is attached.
The associated object.
Gets the type constraint of the associated object.
The associated object type constraint.
Represents a collection of triggers with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
Initializes a new instance of the class.
Internal, because this should not be inherited outside this assembly.
Called immediately after the collection is attached to an AssociatedObject.
Called when the collection is being detached from its AssociatedObject, but before it has actually occurred.
Called when a new item is added to the collection.
The new item.
Called when an item is removed from the collection.
The removed item.
Creates a new instance of the .
The new instance.
Specify type constraints on the AssociatedObject of TargetedTriggerAction and EventTriggerBase.
Initializes a new instance of the class.
The constraint type.
Gets the constraint type.
The constraint type.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to Cannot set the same BehaviorCollection on multiple objects..
Looks up a localized string similar to An instance of a Behavior cannot be attached to more than one object at a time..
Looks up a localized string similar to Cannot host an instance of a TriggerAction in multiple TriggerCollections simultaneously. Remove it from one TriggerCollection before adding it to another..
Looks up a localized string similar to Cannot set the same TriggerCollection on multiple objects..
Looks up a localized string similar to An instance of a trigger cannot be attached to more than one object at a time..
Looks up a localized string similar to The command "{0}" does not exist or is not publicly exposed on {1}..
Looks up a localized string similar to "{0}" is not a valid type for the TriggerType parameter. Make sure "{0}" derives from TriggerBase..
Looks up a localized string similar to Cannot add the same instance of "{0}" to a "{1}" more than once..
Looks up a localized string similar to Cannot find an event named "{0}" on type "{1}.".
Looks up a localized string similar to InvokeCommandAction must be attached to a Behavior. This can be done by adding it to the Actions collection of a Trigger in the Triggers collection of a Behavior object..
Looks up a localized string similar to An object of type "{0}" cannot have a {3} property of type "{1}". Instances of type "{0}" can have only a {3} property of type "{2}"..
Looks up a localized string similar to Cannot attach type "{0}" to type "{1}". Instances of type "{0}" can only be attached to objects of type "{2}"..
Looks up a localized string similar to Unable to resolve TargetName "{0}.".