Export (0) Print
Expand All

HwndTarget.RootVisual Property

Gets or sets the root visual object of the page that is hosted by the window.

Namespace:  System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public override Visual RootVisual { set; }
You cannot set this property in XAML.

Property Value

Type: System.Windows.Media.Visual
The root visual object of the hosted page.

Important noteImportant Note:

This class only overrides the set{} implementation of this property. Although a get{} implementation exists, it comes from the CompositionTarget base class that originally declared this virtual property. On HwndTarget instances, this property is really read-write, despite how the syntax reads in this documentation topic.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft