Microsoft.Xaml.Behaviors
Represents a collection of IAttachedObject with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
The object on which the collection is hosted.
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.
Gets the associated object.
The associated object.
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.
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.
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.
The type to which this behavior can be attached.
Gets the object to which this behavior is attached.
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 associated object.
The associated object.
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.
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.
This method evaluates operands.
Left operand from the LeftOperand property.
Operator from Operator property.
Right operand from the RightOperand property.
Returns true if the condition is met; otherwise, returns false.
Evaluates both operands that implement the IComparable interface.
Left operand from the LeftOperand property.
Operator from Operator property.
Right operand from the RightOperand property.
Returns true if the condition is met; otherwise, returns false.
A basic implementation of ICommand that wraps a method that takes no parameters or a method that takes one parameter.
Initializes a new instance of the class.
The action.
Use this constructor to provide an action that ignores the ICommand parameter.
Initializes a new instance of the class.
An action that takes an object parameter.
Use this constructor to provide an action that uses the object parameter passed by the Execute method.
Occurs when changes occur that affect whether the command should execute. Will not be fired by ActionCommand.
Defines the method that determines whether the command can execute in its current state.
Data used by the command. If the command does not require data to be passed, then this object can be set to null.
Always returns true.
Defines the method to be called when the command is invoked.
Data used by the command. If the command does not require data to be passed, then this object can be set to null.
Calls a method on a specified object when invoked.
The object that exposes the method of interest. This is a dependency property.
The name of the method to invoke. This is a dependency property.
Invokes the action.
The parameter of 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.
Override this to hook up functionality to the AssociatedObject.
Called when the action is getting detached from its AssociatedObject, but before it has actually occurred.
Override this to unhook functionality from the AssociatedObject.
An action that will change a specified property to a specified value when invoked.
Initializes a new instance of the class.
Gets or sets the name of the property to change. This is a dependency property.
The name of the property to change.
Gets or sets the value to set. This is a dependency property.
The value to set.
Gets or sets the duration of the animation that will occur when the ChangePropertyAction is invoked. This is a dependency property.
If the duration is unset, no animation will be applied.
Increment by Value if true; otherwise, set the value directly. If the property cannot be incremented, it will instead try to set the value directly.
Invokes the action.
The parameter of the action. If the action does not require a parameter, then the parameter may be set to a null reference.
A property with could not be found on the Target.
Could not set to the value specified by .
Represents one ternary condition.
Gets or sets the left operand.
Gets or sets the right operand.
Gets or sets the comparison operator.
Method that evaluates the condition. Note that this method can throw ArgumentException if the operator is
incompatible with the type. For instance, operators LessThan, LessThanOrEqual, GreaterThan, and GreaterThanOrEqual
require both operators to implement IComparable.
Returns true if the condition has been met; otherwise, returns false.
Ensure that any binding on DP operands are up-to-date.
Enumeration of different comparison operators.
Forward chaining.
Represents a conditional expression that is set on a ConditionBehavior.Condition property.
Contains a list of conditions that gets evaluated in order to return true or false for ICondition.Evaluate().
Gets or sets forward chaining for the conditions.
If forward chaining is set to ForwardChaining.And, all conditions must be met.
If forward chaining is set to ForwardChaining.Or, only one condition must be met.
Return the Condition collections.
Initializes a new instance of the class.
Goes through the Conditions collection and evalutes each condition based on
ForwardChaining property.
Returns true if conditions are met; otherwise, returns false.
A behavior that attaches to a trigger and controls the conditions
to fire the actions.
Gets or sets the IConditon object on behavior.
The name of the condition to change.
Initializes a new instance of the class.
The event handler that is listening to the preview invoke event that is fired by
the trigger. Setting PreviewInvokeEventArgs.Cancelling to True will
cancel the invocation.
The trigger base object.
An object of type PreviewInvokeEventArgs where e.Cancelling can be set to True.
Toggles between two states based on a conditional statement.
Gets or sets the binding that produces the property value of the data object. This is a dependency property.
Gets or sets the value to be compared with the property value of the data object. This is a dependency property.
Gets or sets the name of the visual state to transition to when the condition is met. This is a dependency property.
Gets or sets the name of the visual state to transition to when the condition is not met. This is a dependency property.
Called after the behavior is attached to an AssociatedObject.
Override this to hook up functionality to the AssociatedObject.
A helper function to take the place of FrameworkElement.IsLoaded, as this property isn't available in Silverlight.
The element of interest.
Returns true if the element has been loaded; otherwise, returns false.
Trigger designed to be bound to a data store property. Fires when the property changes.
Represents a trigger that performs actions when the bound data meets a specified condition.
Gets or sets the value to be compared with the property value of the data object. This is a dependency property.
Gets or sets the type of comparison to be performed between the specified values. This is a dependency property.
Called when the binding property has changed.
UA_REVIEW:chabiss
argument.
ExtendedVisualStateManager is a custom VisualStateManager that can smooth out the animation of layout properties.
With this custom VisualStateManager, states can include changes to properties like Grid.Column, can change element heights to or from Auto, and so on.
These changes will be smoothed out over time using the GeneratedDuration and GeneratedEasingFunction of the appropriate transition.
See the "VisualStateManager overrides" region below for a general description of the algorithm.
OriginalValueRecord remembers the original value of a property that was changed in a state.
A VisualStateGroup that can use FluidLayout or not.
Visibility is shadowed by a custom attached property at runtime.
A VisualStateGroup keeps a list of these original values in an attached property.
For every state, the layout-specific properties get extracted and then are attached to the state. These properties are removed from the state itself.
Remember the current state.
The TransitionEffect to use when the state changes.
The TransitionEffectStoryboard in use during the state change.
The cached background in use during the state change.
The cached background in use during the state change.
The cached background in use during the state change.
This is the set of elements that are currently in motion.
This is the storyboard that is animating the transition.
This list contains all the known layout properties.
Stop the animation and replace the layout changes that were made to support that animation.
Locate the transition that VisualStateManager will use to animate the change, so that the layout animation can match the duration and easing.
The group in which the transition is taking place.
The state that you are coming from.
The state you are going to.
The transition
Remove all layout-affecting properties from the Storyboard for the state and cache them in an attached property.
The state you are moving to.
A Storyboard containing the layout properties in that state.
The set of target elements is the set of all elements that might have moved in a layout transition. This set is the closure of:
- Elements with layout properties animated in the state.
- Siblings of elements in the set.
- Parents of elements in the set.
Subsequent code will check these rectangles both before and after the layout change.
The control whose layout is changing state.
The storyboard containing the layout changes.
Any previous values from previous state navigations that might be reverted.
The set of elements currently in motion, if there is a state change transition ongoing.
The full set of elements whose layout may have changed.
Gets a set of rectangles for all the elements in the target list.
The set of elements to consider.
The set of elements currently in motion.
A Dictionary mapping elements to their Rects.
Get the layout rectangle of an element, by getting the layout slot and then computing which portion of the slot is being used.
The element whose layout Rect will be retrieved.
The layout Rect of that element.
Get the opacities of elements at the time of the state change, instead of visibilities, because the state change may be in process and the current value is the most important.
The control whose state is changing.
The storyboard with the layout properties.
The set of original values.
Go through the layout Storyboard and set all the properties by using SetValue to enable calling UpdateLayout without
ticking the timeline, which would cause a render.
All values that are overwritten will be stored in the collection of OriginalValueRecords so that they can be replaced later.
The control whose state is changing.
The Storyboard holding the layout properties.
The store of original values.
Take all the elements that will be moving as a result of the layout animation, and wrap them in Canvas panels so that
they do not affect their sibling elements.
The set of elements that will be moving.
Take all the elements that have been moving as a result of the layout animation, and unwrap them from their Canvas panels.
The set of elements that have been moving.
Copy the layout properties from the source element to the target element, clearing them from the source.
The source of the layout properties.
The destination of the layout properties.
Create the actual Storyboard that will be used to animate the transition. Use all previously calculated results.
The duration of the animation.
The easing function to be used in the animation.
The set of elements that will be moving.
The old opacities of the elements whose visibility properties are changing.
The Storyboard.
An action that will transition a FrameworkElement to a specified VisualState when invoked.
If the TargetName property is set, this action will attempt to change the state of the targeted element. If not, it walks
the element tree in an attempt to locate an alternative target that defines states. ControlTemplate and UserControl are
two common possibilities.
Determines whether or not to use a VisualTransition to transition between states.
The name of the VisualState.
Called when the target changes. If the TargetName property isn't set, this action has custom behavior.
Could not locate an appropriate FrameworkElement with states.
This method is called when some criteria is met and the action is invoked.
Could not change the target to the specified StateName.
An interface that a given object must implement in order to be
set on a ConditionBehavior.Condition property.
An action that will launch a process to open a file or Uri. For files, this action will launch the default program
for the given file extension. A Uri will open in a web browser.
The file or Uri to open.
This method is called when some criteria is met and the action is invoked.
Represents a trigger that performs actions when the bound data have changed.
A binding object that the trigger will listen to, and that causes the trigger to fire when it changes.
Called when the binding property has changed.
argument.
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.
Called when the target changes. If the TargetName property isn't set, this action has custom behavior.
Could not locate an appropriate FrameworkElement with states.
Allows a user to remove the item from a ListBox ItemTemplate.
An action that will remove the targeted element from the tree when invoked.
This action may fail. The action understands how to remove elements from common parents but not from custom collections or direct manipulation
of the visual tree.
An action that will change the value of a property from a data store object.
This class is identical to ChangePropertyAction. The only difference is that the data store picker is loaded
for this action.
A trigger that is triggered by a specified event occurring on its source and fires after a delay when that event is fired.
Initializes a new instance of the class.
Gets or sets the number of milliseconds to wait between ticks. This is a dependency property.
Gets or sets the total number of ticks to be fired before the trigger is finished. This is a dependency property.
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.
Uses the element-binding picker, if supported, to edit this property at design time.
Uses the property-binding 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).
Gets or sets the custom property value editor.
The custom property value editor.
Initializes a new instance of the class.
The custom property value editor.
Helper class for managing binding expressions on dependency objects.
Ensure that all DP on an action with binding expressions are
up to date. DataTrigger fires during data binding phase. Since
actions are children of the trigger, any bindings on the action
may not be up-to-date. This routine is called before the action
is invoked in order to guarantee that all bindings are up-to-date
with the most current data.
Ensures that all binding expression on actions are up to date
This helper function ensures that, if a dependency property on a dependency object
has a binding expression, the binding expression is up-to-date.
Provides design tools information about what to instantiate for a given action or command.
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.
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.
This method will use the VisualTreeHelper.GetParent method to do a depth first walk up
the visual tree and return all ancestors of the specified object, including the object itself.
The object in the visual tree to find ancestors of.
Returns itself an all ancestors in the visual tree.
EventObserver is designed to help manage event handlers by detatching when disposed. Creating this object will also attach in the constructor.
Creates an instance of EventObserver and attaches to the supplied event on the supplied target. Call dispose to detach.
The event to attach and detach from.
The target object the event is defined on. Null if the method is static.
The delegate to attach to the event.
Detaches the handler from the event.
A trigger that listens for a specified event on its source and fires when that event is fired.
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.
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.
Initializes a new instance of the class.
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.
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.
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.
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.
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.
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 Could not find method named '{0}' on object of type '{1}' that matches the expected signature..
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 More than one potential addition operator was found on type '{0}'..
Looks up a localized string similar to Cannot animate a property change on a type '{0}' Target. Property changes can only be animated on types derived from DependencyObject..
Looks up a localized string similar to Cannot find a property named "{0}" on type "{1}"..
Looks up a localized string similar to The Increment property cannot be set to True if the Duration property is set..
Looks up a localized string similar to The '{0}' property cannot be incremented because its value cannot be read..
Looks up a localized string similar to Cannot assign value of type "{0}" to property "{1}" of type "{2}". The "{1}" property can be assigned only values of type "{2}"..
Looks up a localized string similar to Property "{0}" defined by type "{1}" does not expose a set method and therefore cannot be modified..
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 Cannot find state named '{0}' on type '{1}'. Ensure that the state exists and that it can be accessed from this context..
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 The event "{0}" on type "{1}" has an incompatible signature. Make sure the event is public and satisfies the EventHandler delegate..
Looks up a localized string similar to Cannot find an event named "{0}" on type "{1}"..
Looks up a localized string similar to Target {0} does not define any VisualStateGroups. .
Looks up a localized string similar to LeftOperand of type "{0}" cannot be used with operator "{1}"..
Looks up a localized string similar to LeftOperand of type "{1}" and RightOperand of type "{0}" cannot be used with operator "{2}"..
Looks up a localized string similar to RightOperand of type "{0}" cannot be used with operator "{1}"..
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}"..
Looks up a localized string similar to The target of the RemoveElementAction is not supported..
An interface for an object that can be attached to another object.
Gets the associated object.
The associated object.
Represents the object the instance is attached to.
Attaches to the specified object.
The object to attach to.
Detaches this instance from its associated object.
A Trigger that is triggered by a keyboard event. If the target Key and Modifiers are detected, it fires.
The key that must be pressed for the trigger to fire.
The modifiers that must be active for the trigger to fire (the default is no modifiers pressed).
If true, the Trigger only listens to its trigger Source object, which means that element must have focus for the trigger to fire.
If false, the Trigger listens at the root, so any unhandled KeyDown/Up messages will be caught.
Determines whether or not to listen to the KeyDown or KeyUp event.
Allows the user to use common touch gestures to translate, zoom, and rotate the attached object.
Gets or sets a value specifying which zooming and translation variants to support.
Gets or sets a number describing the rate at which the translation will decrease.
Gets or sets a number describing the rate at which the rotation will decrease.
Gets or sets the value indicating whether the zoom and translate position of the attached object is limited by the bounds of the parent object.
Gets or sets a number indicating the minimum zoom value allowed.
Gets or sets a number indicating the maximum zoom value allowed.
Called after the behavior is attached to an AssociatedObject.
Override this to hook up functionality to the AssociatedObject.
Called when the behavior is getting detached from its AssociatedObject, but before it has actually occurred.
Override this to unhook functionality from the AssociatedObject.
Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.
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.
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 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.
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.
Gets or sets the IValueConverter that is used to convert the EventArgs passed to the Command as a parameter.
If the or properties are set, this property is ignored.
Gets or sets the parameter that is passed to the EventArgsConverter.
Gets or sets the parameter path used to extract a value from an property to pass to the Command as a parameter.
If the propert is set, this property is ignored.
Specifies whether the EventArgs of the event that triggered this action should be passed to the Command as a parameter.
If the , , or properties are set, this property is ignored.
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.
This enumerated type indicates whether a FluidMoveBehavior applies to the element to which it is attached, or to the children of that element.
"Self" is useful when there is a single element that should behave in a special manner; "Children" is useful when the same behavior should apply to all
children of a WrapPanel or to the ItemsHost panel of an ItemsControl.
This enumerated type indicates whether an element is identified by itself, or by its DataContext.
DataContext identification allows movement from one data-driven location to another.
Indicates whether the behavior applies just to this element, or to all children of the element (if the element is a Panel).
Dependency property for the scope of the behavior. See FluidMoveScope for more details.
Indicates whether the behavior is currently active.
Dependency property for the active state of the behavior.
Indicates whether to use the element as its own tag, or to use the binding on the element as the tag.
Dependency property that provides the ability to use the element as its own tag, or the binding on the element.
Extra path to add to the binding when TagType is specified.
Dependency property for the extra path to add to the binding when UsaBindingAsTag is true.
Identity tag used to detect element motion between containers.
Private structure that stores all relevant data pertaining to a tagged item.
Behavior that watches an element (or a set of elements) for layout changes, and moves the element smoothly to the new position when needed.
This behavior does not animate the size or visibility of an element; it only animates the offset of that element within its parent container.
The duration of the move.
Dependency property for the duration of the move.
Spawning point for this item.
Dependency property for the tag type to use just before the object is loaded.
Extra path to add to the binding when TagType is specified.
Dependency property for the extra path to add to the binding when UsaBindingAsTag is true.
Identity tag used to detect element motion between containers.
Flag that says whether elements are allowed to float above their containers (in a Popup or Adorner) when changing containers.
Dependency property for the FloatAbove flag.
EasingFunction to use for the horizontal component of the move.
Dependency property for the EasingFunction to use for the horizontal component of the move.
EasingFunction to use for the vertical component of the move.
Dependency property for the EasingFunction to use for the vertical component of the move.
Remember the popup/adorner being used, in case of element motion between containers when FloatAbove is true.
Opacity cache used when floating a Popup.
Marks the animation transform.
Simple helper class to allow any UIElements to be used as an Adorner.
Repositions the attached element in response to mouse drag gestures on the element.
Occurs when a drag gesture is initiated.
Occurs when a drag gesture update is processed.
Occurs when a drag gesture is finished.
Dependency property for the X position of the dragged element, relative to the left of the root element.
Dependency property for the Y position of the dragged element, relative to the top of the root element.
Dependency property for the ConstrainToParentBounds property. If true, the dragged element will be constrained to stay within the bounds of its parent container.
Gets or sets the X position of the dragged element, relative to the left of the root element. This is a dependency property.
Gets or sets the Y position of the dragged element, relative to the top of the root element. This is a dependency property.
Gets or sets a value indicating whether the dragged element is constrained to stay within the bounds of its parent container. This is a dependency property.
True if the dragged element should be constrained to its parents bounds; otherwise, False.
Gets the on-screen position of the associated element in root coordinates.
The on-screen position of the associated element in root coordinates.
Gets the element bounds in element coordinates.
The element bounds in element coordinates.
Gets the parent element of the associated object.
The parent element of the associated object.
Gets the root element of the scene in which the associated object is located.
The root element of the scene in which the associated object is located.
Gets and sets the RenderTransform of the associated element.
Attempts to update the position of the associated element to the specified coordinates.
The desired position of the element in root coordinates.
Applies a relative position translation to the associated element.
The X component of the desired translation in root coordinates.
The Y component of the desired translation in root coordinates.
Applies the given translation to the RenderTransform of the associated element.
The X component of the translation in parent coordinates.
The Y component of the translation in parent coordinates.
Does a recursive deep copy of the specified transform.
The transform to clone.
A deep copy of the specified transform, or null if the specified transform is null.
Thrown if the type of the Transform is not recognized.
Updates the X and Y properties based on the current rendered position of the associated element.
Check if one Rect is contained by another.
The containing Rect.
The contained Rect.
True if rect1 contains rect2; otherwise, False.
Transforms as vector.
The transform.
The X component of the vector.
The Y component of the vector.
A point containing the values of X and Y transformed by transform as a vector.
Gets the transform offset.
The transform.
The offset of the transform.
Called after the behavior is attached to an AssociatedObject.
Override this to hook up functionality to the AssociatedObject.
Called when the behavior is getting detached from its AssociatedObject, but before it has actually occurred.
Override this to unhook functionality from the AssociatedObject.
An action that will play a sound to completion.
This action is intended for use with short sound effects that don't need to be stopped or controlled. If you're trying
to create a music player or game, it may not meet your needs.
Initializes a new instance of the class.
A Uri defining the location of the sound file. This is used to set the source property of the MediaElement. This is a dependency property.
The sound can be any file format supported by MediaElement. In the case of a video, it will play only the
audio portion.
Control the volume of the sound. This is used to set the Volume property of the MediaElement. This is a dependency property.
When the action is invoked, this method is used to customize the dynamically created MediaElement.
This method may be useful for Action authors who wish to extend PlaySoundAction. If you want to control the
MediaElement Balance property, you could inherit from PlaySoundAction and override this method.
This method is called when some criteria are met and the action should be invoked.
Each invocation of the Action plays a new sound. Although the implementation is subject-to-change, the caller should
anticipate that this will create a new MediaElement that will be cleaned up when the sound completes or if the media
fails to play.
An abstract class that provides the ability to target a Storyboard.
For action authors, this class provides a standard way to target a Storyboard. Design tools may choose to provide a
special editing experience for classes that inherit from this action, thereby improving the designer experience.
The targeted Storyboard. This is a dependency property.
This method is called when the Storyboard property is changed.
An action that will change the state of a targeted storyboard when invoked.
This method is called when some criteria is met and the action should be invoked. This method will attempt to
change the targeted storyboard in a way defined by the ControlStoryboardOption.
An abstract class that provides the ability to target a Storyboard.
For Trigger authors, this class provides a standard way to target a Storyboard. Design tools may choose to provide a
special editing experience for classes that inherit from this trigger, thereby improving the designer experience.
The targeted Storyboard. This is a dependency property.
This method is called when the Storyboard property is changed.
A trigger that listens for the completion of a Storyboard.
Initializes a new instance of the class.
Defines a transition effect shader that transitions from one visual to another visual
using an interpolated value between 0 and 1.
Brush-valued properties that turn into sampler-properties in the shader.
Represents the image present in the final state of the transition.
Brush-valued properties that turn into sampler-properties in the shader.
Represents the image present in the initial state of the transition.
A Dependency property as the backing store for Progress.
Also used to represent the state of a transition from start to finish (range between 0 and 1).
Creates a modifiable clone (deep copy) of the using its current values.
Makes a deep copy of the transition effect. Implements CloneCurrentValue in Silverlight.
A clone of current instance of transition effect.
Updates the shader's variables to the default values.
Gets or sets the Input variable within the shader.
Gets or sets the OldImage variable within the shader.
Gets or sets the Progress variable within the shader.
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.
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 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.
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.
The current version of the flow file schema.
This number should be incremented whenever:
A new _required_ field is added.
The data type of a field is changed.
The semantic interpretation of a field is changed.
When upgrading the current schema number, you'll also need to take into account
migration/upgrade strategies, and mechanisms for deserializing older schemas.
In some cases, the same serializer data structure may suffice by applying different
parsing validation rules. In other cases, a new data structure may be needed to
deserialize the old format from disk.
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.
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.
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.
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.
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.
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.
Represents an attachable object that encapsulates a unit of functionality.
The type to which this action can be attached.
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.
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.
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.
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.
Gets the associated object.
The associated object.
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.
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.
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 object that can invoke Actions conditionally.
This is an infrastructure class. Trigger authors should derive from Trigger<T> instead of this 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.
Gets the actions associated with this trigger.
The actions associated with this trigger.
Event handler for registering to PreviewInvoke.
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.
Gets the associated object.
The associated object.
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.
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.
Specifies type constraints on the AssociatedObject of TargetedTriggerAction and EventTriggerBase.
Gets the constraint type.
The constraint type.
Initializes a new instance of the class.
The constraint type.
This class provides various platform agnostic standard operations for working with VisualStateManager.
Transitions the control between two states.
The element to transition between states.
The state to transition to.
True to use a System.Windows.VisualTransition to transition between states; otherwise, false.
True if the control successfully transitioned to the new state; otherwise, false.
Control is null.
StateName is null.
Gets the value of the VisualStateManager.VisualStateGroups attached property.
The element from which to get the VisualStateManager.VisualStateGroups.
Find the nearest parent which contains visual states.
The element from which to find the nearest stateful control.
The nearest stateful control if True; else null.
True if a parent contains visual states; else False.