Viewport2DVisual3D.Visual Property


Gets or sets the 2-D visual to be placed on the 3-D object.

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

public Visual Visual { get; set; }

Property Value

Type: System.Windows.Media.Visual

The visual to be placed on the 3-D object.

The visual is first applied to the VisualBrush, which is then used on the 3-D object.

Visual is introduced in the .NET Framework version 3.5.

The following example shows how to place a button, a 2-D object, on a 3-D object:

For the complete sample, see Interactive 2-D on 3-D Sample.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft