PresentationSource.RootVisual Property

 

When overridden in a derived class, gets or sets the root visual being presented in the source.

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

public abstract Visual RootVisual {
	get;
	[SecurityCriticalAttribute]
	[UIPermissionAttribute(SecurityAction.InheritanceDemand, Window = UIPermissionWindow.AllWindows)]
	[UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)]
	set;
}

Property Value

Type: System.Windows.Media.Visual

The root visual.

Notes to Inheritors:

UIPermission

to set the root visual (LinkDemand). Associated enumeration: UIPermissionWindow.AllWindows.

UIPermission

to override the property (InheritanceDemand). Associated enumeration: UIPermissionWindow.AllWindows.

.NET Framework
Available since 3.0
Return to top
Show: