# Viewport2DVisual3D.Visual Property

.NET Framework 4.6 and 4.5

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)

## Syntax

```public Visual Visual { get; set; }
```

#### Property Value

Type: System.Windows.Media.Visual

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

## Remarks

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.

## Examples

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.

## Version Information

.NET Framework
Available since 3.0