This topic has not yet been rated - Rate this topic

Viewport3DVisual Class

Renders the Visual3D children within the specified 2D viewport bounds.

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      System.Windows.Media.Visual
        System.Windows.Media.Media3D.Viewport3DVisual

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
[ContentPropertyAttribute("Children")]
public sealed class Viewport3DVisual : Visual
<Viewport3DVisual>
  Children
</Viewport3DVisual>

The Viewport3DVisual type exposes the following members.

  Name Description
Public method Viewport3DVisual Initializes a new instance of the Viewport3DVisual class.
Top
  Name Description
Public property BitmapEffect Obsolete. Gets or sets the BitmapEffect applied to the Viewport3DVisual.
Public property BitmapEffectInput Obsolete. Gets or sets the BitmapEffectInput applied to the Viewport3DVisual.
Public property Camera Gets or sets the Camera used by the Viewport3DVisual.
Public property Children Gets a collection of Visual3D objects contained by Viewport3DVisual.
Public property Clip Gets or sets the clipping region of the Viewport3DVisual.
Public property ContentBounds Gets the bounding box for the contents of the Viewport3DVisual.
Public property DependencyObjectType Gets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public property DescendantBounds Gets the union of all of the content bounding boxes for all of the descendants of the Viewport3DVisual, but not including the contents of the Viewport3DVisual.
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property IsSealed Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public property Offset Gets or sets the offset value of the Viewport3DVisual.
Public property Opacity Gets or sets the opacity of the Viewport3DVisual.
Public property OpacityMask Gets or sets the opacity mask value of the Viewport3DVisual.
Public property Parent Gets the parent Visual for the Viewport3DVisual.
Public property Transform Gets or sets the transform value of the Viewport3DVisual.
Public property Viewport Gets or sets the rectangle in which the Viewport3DVisual will be rendered.
Protected property VisualBitmapEffect Obsolete. Gets or sets the BitmapEffect value for the Visual. (Inherited from Visual.)
Protected property VisualBitmapEffectInput Obsolete. Gets or sets the BitmapEffectInput value for the Visual. (Inherited from Visual.)
Protected property VisualBitmapScalingMode Gets or sets the BitmapScalingMode for the Visual. (Inherited from Visual.)
Protected property VisualCacheMode Gets or sets a cached representation of the Visual. (Inherited from Visual.)
Protected property VisualChildrenCount Gets the number of child elements for the Visual. (Inherited from Visual.)
Protected property VisualClearTypeHint Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual. (Inherited from Visual.)
Protected property VisualClip Gets or sets the clip region of the Visual as a Geometry value. (Inherited from Visual.)
Protected property VisualEdgeMode Gets or sets the edge mode of the Visual as an EdgeMode value. (Inherited from Visual.)
Protected property VisualEffect Gets or sets the bitmap effect to apply to the Visual. (Inherited from Visual.)
Protected property VisualOffset Gets or sets the offset value of the visual object. (Inherited from Visual.)
Protected property VisualOpacity Gets or sets the opacity of the Visual. (Inherited from Visual.)
Protected property VisualOpacityMask Gets or sets the Brush value that represents the opacity mask of the Visual. (Inherited from Visual.)
Protected property VisualParent Gets the visual tree parent of the visual object. (Inherited from Visual.)
Protected property VisualScrollableAreaClip Gets or sets a clipped scrollable area for the Visual. (Inherited from Visual.)
Protected property VisualTextHintingMode Gets or sets the TextHintingMode of the Visual. (Inherited from Visual.)
Protected property VisualTextRenderingMode Gets or sets the TextRenderingMode of the Visual. (Inherited from Visual.)
Protected property VisualTransform Gets or sets the Transform value for the Visual. (Inherited from Visual.)
Protected property VisualXSnappingGuidelines Gets or sets the x-coordinate (vertical) guideline collection. (Inherited from Visual.)
Protected property VisualYSnappingGuidelines Gets or sets the y-coordinate (horizontal) guideline collection. (Inherited from Visual.)
Top
  Name Description
Protected method AddVisualChild Defines the parent-child relationship between two visuals. (Inherited from Visual.)
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method ClearValue(DependencyProperty) Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public method ClearValue(DependencyPropertyKey) Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public method CoerceValue Coerces 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 method Equals Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindCommonVisualAncestor Returns the common ancestor of two visual objects. (Inherited from Visual.)
Public method GetHashCode Gets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public method GetLocalValueEnumerator Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Protected method GetVisualChild Returns the specified Visual in the parent VisualCollection. (Inherited from Visual.)
Public method HitTest(Point) Returns the top-most visual object of a hit test performed at a specified Point.
Public method HitTest(HitTestFilterCallback, HitTestResultCallback, HitTestParameters) Initiate a hit test on the Viewport3DVisual by using the HitTestFilterCallback and HitTestResultCallback objects.
Protected method HitTestCore(GeometryHitTestParameters) Determines whether a geometry value is within the bounds of the visual object. (Inherited from Visual.)
Protected method HitTestCore(PointHitTestParameters) Determines whether a point coordinate value is within the bounds of the visual object. (Inherited from Visual.)
Public method InvalidateProperty Re-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Public method IsAncestorOf Determines whether the visual object is an ancestor of the descendant visual object. (Inherited from Visual.)
Public method IsDescendantOf Determines whether the visual object is a descendant of the ancestor visual object. (Inherited from Visual.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnPropertyChanged Invoked 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 method OnVisualChildrenChanged Called when the VisualCollection of the visual object is modified. (Inherited from Visual.)
Protected method OnVisualParentChanged Called when the parent of the visual object is changed. (Inherited from Visual.)
Public method PointFromScreen Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. (Inherited from Visual.)
Public method PointToScreen Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. (Inherited from Visual.)
Public method ReadLocalValue Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Protected method RemoveVisualChild Removes the parent-child relationship between two visuals. (Inherited from Visual.)
Public method SetCurrentValue Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public method SetValue(DependencyProperty, Object) Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public method SetValue(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 method ShouldSerializeProperty Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransformToAncestor(Visual) Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object. (Inherited from Visual.)
Public method TransformToAncestor(Visual3D) Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object. (Inherited from Visual.)
Public method TransformToDescendant Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. (Inherited from Visual.)
Public method TransformToVisual Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. (Inherited from Visual.)
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
  Name Description
Public field Static member CameraProperty Identifies the Camera dependency property.
Public field Static member ViewportProperty Identifies the Viewport dependency property.
Top

The Viewport3DVisual is a 2D Visual with 3D children. The Viewport3DVisual provides necessary infrastructure for the Viewport3D element. Most users will want to use the Viewport3D element.

.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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ