🔹 Visual Class
namespace Noesis | MSDN
Provides rendering support, which includes hit testing, coordinate transformation, and bounding box calculations.
Inheritance Hierarchy
• Visual
Properties
| Name | Description |
|---|---|
| ◆ View | Gets the view where this visual is connected to |
◆ Dependency Property ◆ Reflection Property
From DispatcherObject
| Name | Description |
|---|---|
| ◆ ThreadId | Gets the thread this DispatcherObject is associated with. Returns NoThreadId when this object is not attached to any thread. |
◆ Dependency Property ◆ Reflection Property
Attached Properties
Visual has no attached properties
Methods
| Name | Description |
|---|---|
| ◆ EnsureRenderId(RenderTreeUpdater&) | Ensures that a render node exists for this visual |
| ◆ FindCommonVisualAncestor(const Visual*) | Finds the common ancestor of two visuals objects If visual is the same object as this, the common ancestor will be the parent |
| ◆ GetRenderTreeId() | Gets RenderTree's identifier |
| ◆ IsAncestorOf(const Visual*) | Determines whether the visual object is an ancestor of the descendant visual object This object is not considered to be an ancestor of visual if they are the same |
| ◆ IsConnectedToView() | Indicates if this visual has been connected to a View |
| ◆ IsDescendantOf(const Visual*) | Determines whether the visual object is a descendant of the ancestor visual object This object is not considered to be a descendant of visual if they are the same |
| ◆ 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(const Point&) | Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual |
| ◆ PointToScreen(const Point&) | Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates |
| ◆ SubtreeDrawingCommandsChanged() | Occurs when subtree render commands have changed |
| ◆ TransformToAncestor(const Visual*) | Returns a transform that can be used to transform coordinates from the Visual to the specified ancestor of the visual object |
| ◆ TransformToDescendant(const Visual*) | Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant |
| ◆ TransformToVisual(const Visual*) | Returns a transform that can be used to transform coordinates from the Visual to the specified visual object |
| ◆ UpdateRender(RenderTreeUpdater&) | Pushes all the layout updates into the UI render thread queue to update render nodes |
From DependencyObject
| Name | Description |
|---|---|
| ◆ ClearAnimation(const DependencyProperty*) | Clears the animation value of a property |
| ◆ ClearLocalValue(const DependencyProperty*) | Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier |
| ◆ CoerceValue(const DependencyProperty*) | Coerces and validates the effective property value |
| ◆ DependencyPropertyChanged() | Returns the PropertyChanged event |
| ◆ Destroyed() | Destroyed delegate is raised when object is going to be destroyed |
| ◆ GetBaseValue(const DependencyProperty*) | Returns the base value without animation nor coerce (this never returns Expression like GetLocalValue) |
| ◆ GetExpression(const DependencyProperty*) | Gets the expression, if any, used to evaluate the specified property value |
| ◆ GetLocalValue(const DependencyProperty*) | Returns the local value of a dependency property, if it exists |
| ◆ GetValue(const DependencyProperty*) | Returns the current effective value of a dependency property on this instance of a DependencyObject |
| ◆ GetValueObject(const DependencyProperty*) | Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value |
| ◆ GetValueProvider(const DependencyProperty*) | Gets the provider that returns the effective value for the specified dependency property |
| ◆ HasAnimatedProperties() | Returns true if there is any animated property |
| ◆ InvalidateProperty(const DependencyProperty*, uint8_t) | Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed |
| ◆ IsCached(const DependencyProperty*, uint8_t*) | Returns if the value is stored in the cache. If true, the priority is returned in the provider field |
| ◆ IsSealed() | Gets a value that indicates whether this instance is currently sealed (read-only) |
| ◆ SetAnimation(const DependencyProperty*, SetValueType<T>::Type) | Sets the animated value of a property |
| ◆ SetCurrentValue(const DependencyProperty*, SetValueType<T>::Type) | Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value |
| ◆ SetCurrentValueObject(const DependencyProperty*, BaseComponent*) | Sets the current value of a dependency property using a boxed value |
| ◆ SetExpression(const DependencyProperty*, Expression*) | Sets the expression to be evaluated dynamically to obtain the value of the property |
| ◆ SetValue(const DependencyProperty*, SetValueType<T>::Type) | Sets the local value of a dependency property |
| ◆ SetValueObject(const DependencyProperty*, BaseComponent*) | Sets the local value (boxed) of a dependency property |
From DispatcherObject
| Name | Description |
|---|---|
| ◆ CheckAccess() | Determines whether the calling thread has access to this DispatcherObject |
| ◆ VerifyAccess() | Enforces that the calling thread has access to this DispatcherObject |
Events
Visual has no events