Windows.UI.Interactivity
Implements a collection of attachable objects that can be attached to a DependencyObject
The type of elements
Implements a collection of dependency objects
Type of the DependencyObject contained
Hosts the collection
Initializes the DependencyObjectCollection class
Add an item to the collection
Item to add
Clears the collection
Verifies if the collection contains the instance of an element
Element to check
true if the element is contained in the collection, otherwise false
Copies an array to this instance
Array to copy from
Index to start from
Removes an instance from the collection
Instance of the item to remove
True if the item was successfully removed, otherwise false
Retrieve an enumerator for this collection
Instance of the enumerator
Retrieve an enumerator for this collection
Instance of the enumerator
Returns the position of an element in the collection
Item to search for
Index of the position where the item is found
Inster an item into the collection
index of the position to insert the item
item to insert
Removes an item at the specified position
Index of the item to be removed
Number of items in the collection
Returns true if this collection cannot be modified
Retrieve an item at the given position
Index of the item
Instance of the item from the collection
Notifies changes in the collection
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.
Implemented by derived class notifies an item was added
Item added
Implemented by derived class notifies an item was removed
Item removed
Notifies a DependencyObject has been attached
Notifies a DependencyObject is detaching
Initializes the collection
Attaches the specified FrameworkElement to the collection
FrameworkElement to attach
Detaches the currently associated DependencyObject
Handles elements added to or removed from the collection
source of the event
arguments
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.
Initializes a new instance of the 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.
Gets the object to which this behavior is attached.
Gets the type constraint of the associated object.
The associated object type constraint.
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.
Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
The saved weak reference to the associated object
Handles the Loaded event of the AssociatedObject control.
This is used when a behavior or trigger is attached to an itemcontainer,
which is virtualized and uses recycling.
Handles the Unloaded event of the AssociatedObject control.
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.
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.
Initializes a new instance of the class.
Gets the object to which this is attached.
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 object 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 object 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 object 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.
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 actions associated with this trigger.
The actions associated with this trigger.
Event handler for registering to PreviewInvoke.
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 target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property.
The target object.
Gets or sets the name of the element this EventTriggerBase listens for as a source. If the name is not set 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 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.
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.
Identifies the InheritedDataContext DependencyProperty.
Handles changes to the InheritedDataContext DependencyProperty.
Instance with property change.
Property change details.
Identifies the DataContextChangedHandler DependencyProperty.
Adds the data context changed handler.
Element to which the handler is added
The handler to add
Removes the data context changed handler.
The element from which the handler has to be removed
The handler to remove
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 used as the internal backing store for the public Behaviors attached property.
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 this property is not available in Silverlight.
The element of interest.
True if the element has been loaded; otherwise, False.
Executes a specified ICommand 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.
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 or sets a value indicating whether this instance is attached.
True if this instance is attached; otherwise, False.
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.
Gets or sets the name of the command this action should invoke.
The name of the command this action should invoke.
This property will be superseded by the Command property if both are set.
Gets or sets the command this action should invoke. This is a dependency property.
The command to execute.
This property will take precedence over the CommandName property if both are set.
Gets or sets the command parameter. This is a dependency property.
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 the 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.
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 if 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.
Occurs when the resolved element has changed.
Argument passed to PreviewInvoke event. Assigning Cancelling to True will cancel the invoking of the trigger.
This is an infrastructure class. Behavior attached to a trigger base object can add its behavior as a listener to TriggerBase.PreviewInvoke.
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 target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property.
The target object.
Gets or sets the name of the object this action targets. If Target is set, this property is ignored. If Target is not set and TargetName is not set or cannot be resolved, the target will default to the AssociatedObject. This is a dependency property.
The name of the target object.
Gets the target object. If TargetObject is set, returns TargetObject. Else, if TargetName is not set or cannot be resolved, defaults to the AssociatedObject.
The target object.
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.
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.
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 not set 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.
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.
Specifies 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.
Fires off notifications about the specified object's lifetime events (Loaded and Unloaded), without keeping a hard reference to the target.