Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Visual3D Class

Provides services and properties that are common to visual 3-D objects, including hit-testing, coordinate transformation, and bounding box calculations.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public abstract class Visual3D : DependencyObject, 
	IAnimatable

The Visual3D type exposes the following members.

  NameDescription
Public propertyDependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertyHasAnimatedPropertiesGets a value that indicates whether this Visual3D has any animated properties.
Public propertyIsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public propertyTransformGets or sets the transformation that is applied to the 3-D object.
Protected propertyVisual3DChildrenCountGets the number of child elements for the Visual3D object.
Protected propertyVisual3DModelGets or sets the Model3D object to render.
Top

  NameDescription
Protected methodAddVisual3DChildDefines the parent-child relationship between two 3-D visuals.
Public methodApplyAnimationClock(DependencyProperty, AnimationClock)Applies the effect of a given AnimationClock to a given dependency property.
Public methodApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)Applies the effect of a given AnimationClock to a given dependency property. The effect of the new AnimationClock on any current animations is determined by the value of the handoffBehavior parameter.
Public methodBeginAnimation(DependencyProperty, AnimationTimeline)Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline.
Public methodBeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)Initiates an animation sequence for the DependencyProperty object, based on both the specified AnimationTimeline and HandoffBehavior.
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public methodCoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
Public methodEqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindCommonVisualAncestorReturns the common ancestor of the visual object and another specified visual object.
Public methodGetAnimationBaseValueRetrieves the base value of the specified DependencyProperty object.
Public methodGetHashCodeGets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public methodGetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueReturns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Protected methodGetVisual3DChildReturns the specified Visual3D in the parent Visual3DCollection.
Public methodInvalidatePropertyRe-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Public methodIsAncestorOfDetermines whether the visual object is an ancestor of the descendant visual object.
Public methodIsDescendantOfDetermines whether the visual object is a descendant of the ancestor visual object.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnPropertyChangedInvoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (Inherited from DependencyObject.)
Protected methodOnVisualChildrenChangedCalled when the Visual3DCollection of the visual object is modified.
Protected methodOnVisualParentChangedCalled when the parent of the 3-D visual object is changed.
Public methodReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Protected methodRemoveVisual3DChildRemoves the parent-child relationship between two 3-D visuals.
Public methodSetCurrentValueSets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public methodSetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.)
Protected methodShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTransformToAncestor(Visual)Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual ancestor of the object.
Public methodTransformToAncestor(Visual3D)Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D ancestor of the object.
Public methodTransformToDescendantReturns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D descent object.
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

  NameDescription
Public fieldStatic memberTransformPropertyIdentifies the Transform dependency property.
Top

Unlike the Model3D class, Visual3D objects cannot be shared or reused.

Access Visual3D services by using static methods on the VisualTreeHelper class.

Visual3D objects are optimized to be scene nodes. For example, they cache bounds. Whenever you can, use Visual3D objects for unique instances of objects within your scene. This usage contrasts with that of Model3D objects, which are lightweight objects that are optimized to be shared and reused. For example, use a Model3D object to build a model of a car; and use ten ModelVisual3D objects to place ten cars in your scene.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft