Visual Class
Provides support for: output display (rendering the persisted, serialized drawing content of a visual), transformations (performing transformations on a visual), clipping (providing clipping region support for a visual), hit testing (determining whether a coordinate or geometry is contained within the bounds of a visual), and bounding box calculations (determining the bounding rectangle of a visual).
http://msdn.microsoft.com/en-us/library/system.windows.media.visual.aspx
Methods
From Visual
Name | Description |
---|---|
ConnectToView | Enables or disables visual for render |
DisableDebugFlags | Disable debug rendering (wireframe, overdraw, etc) for this node and children |
FindCommonVisualAncestor | Finds the common ancestor of two visuals objects |
GetRenderTreeId | Gets render tree id |
IsAncestorOf | Determines whether the visual object is an ancestor of the descendant visual object |
IsConnectedToView | Indicates if this visual has been connected to a View |
IsDescendantOf | Determines whether the visual object is a descendant of the ancestor visual object |
IsInRenderTree | Indicates if a render node has been created in the RenderTree for this visual |
IsInvalidated | Indicates if this visual is invalidated and should send updates to the render tree |
PointFromScreen | Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual |
PointToScreen | Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates |
SetVisualBrushFlag | Sets the flag that indicates that this Visual contains a VisualBrush |
TransformToAncestor | Returns a transform that can be used to transform coordinates from the Visual to the specified ancestor of the visual object |
TransformToDescendant | Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant |
TransformToVisual | Returns a transform that can be used to transform coordinates from the Visual to the specified visual object |
From DependencyObject
Name | Description |
---|---|
ClearAnimation | Clears the animation value of a property |
ClearAnimation | Clears the animation value of a property |
ClearLocalValue | Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier |
CoerceValue | Coerces and validates the effective property value |
CoerceValue | Coerces and validates the effective property value |
DependencyPropertyChanged | Returns the PropertyChanged event |
GetBaseValue | Returns the base value without animation nor coerce (this never returns IExpression like GetLocalValue) |
GetLocalValue | Returns the local value of a dependency property, if it exists. |
GetValue | Returns the current effective value of a dependency property on this instance of a DependencyObject |
GetValueObject | Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value |
GetValueProvider | Gets the provider that returns the effective value for the specified dependency property |
HasAnimatedProperties | Returns true if there is any animated property |
InvalidateProperty | Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed |
IsCached | Returns if the value is stored in the cache. If true, the priority is returned in the provider field |
SetAnimation | Sets the animated value of a property |
SetCurrentValue | Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value |
SetCurrentValueObject | Sets the current value of a dependency property using a boxed value |
SetExpression | Sets the expression to be evaluated dynamically to obtain the value of the property |
SetValue | Sets the local value of a dependency property |
SetValueObject | Sets the local value of a dependency property using a boxed value |
Properties
From Visual
Name | Description | |
---|---|---|
![]() |
View | Gets the view where this visual is connected to |


Events
Visual has no events