Microsoft.Expression.Interactions
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.
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.
Occurs when changes occur that affect whether the command should execute. Will not be fired by ActionCommand.
Calls a method on a specified object when invoked.
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.
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.
An action that will change a specified property to a specified value when invoked.
Initializes a new instance of the class.
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 .
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.
Represents one ternary condition.
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.
Gets or sets the left operand.
Gets or sets the right operand.
Gets or sets the comparison operator.
Enumeration of different comparison operators.
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.
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().
An interface that a given object must implement in order to be
set on a ConditionBehavior.Condition property.
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.
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.
A behavior that attaches to a trigger and controls the conditions
to fire the actions.
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.
Gets or sets the IConditon object on behavior.
The name of the condition to change.
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.
Toggles between two states based on a conditional statement.
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.
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.
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 have changed.
UA_REVIEW:chabiss
Called when the binding property has changed.
UA_REVIEW:chabiss
argument.
Called after the trigger is attached to an AssociatedObject.
UA_REVIEW:chabiss
Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.
UA_REVIEW:chabiss
A binding object that the trigger will listen to, and that causes the trigger to fire when it changes.
UA_REVIEW:chabiss
Represents a trigger that performs actions when the bound data meets a specified condition.
Called when the binding property has changed.
UA_REVIEW:chabiss
argument.
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.
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.
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.
OriginalValueRecord remembers the original value of a property that was changed in a state.
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.
Dependency property for the scope of the behavior. See FluidMoveScope for more details.
Dependency property for the active state of the behavior.
Dependency property that provides the ability to use the element as its own tag, or the binding on the element.
Dependency property for the extra path to add to the binding when UsaBindingAsTag is true.
Identity tag used to detect element motion between containers.
Indicates whether the behavior applies just to this element, or to all children of the element (if the element is a Panel).
Indicates whether the behavior is currently active.
Indicates whether to use the element as its own tag, or to use the binding on the element as the tag.
Extra path to add to the binding when TagType is specified.
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.
Dependency property for the duration of the move.
Dependency property for the tag type to use just before the object is loaded.
Dependency property for the extra path to add to the binding when UsaBindingAsTag is true.
Identity tag used to detect element motion between containers.
Dependency property for the FloatAbove flag.
Dependency property for the EasingFunction to use for the horizontal 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.
The duration of the move.
Spawning point for this item.
Extra path to add to the binding when TagType is specified.
Flag that says whether elements are allowed to float above their containers (in a Popup or Adorner) when changing containers.
EasingFunction to use for the horizontal component of the move.
EasingFunction to use for the vertical component of the move.
Simple helper class to allow any UIElements to be used as an Adorner.
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.
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.
Determines whether or not to use a VisualTransition to transition between states.
The name of the VisualState.
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.
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.
This method is called when some criteria is met and the action is invoked.
The file or Uri to open.
Repositions the attached element in response to mouse drag gestures on the element.
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.
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.
Occurs when a drag gesture is initiated.
Occurs when a drag gesture update is processed.
Occurs when a drag gesture is finished.
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.
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.
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.
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.
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.
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.
This method is called when the Storyboard property is changed.
The targeted Storyboard. This is a dependency property.
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.
This method is called when the Storyboard property is changed.
The targeted Storyboard. This is a dependency property.
A trigger that listens for the completion of a Storyboard.
Initializes a new instance of the class.
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.
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.
Allows the user to use common touch gestures to translate, zoom, and rotate the attached object.
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.
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.
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.
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 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 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 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 The target of the RemoveElementAction is not supported..