VisualTreeHelper::SetRootDpi Method (Visual^, DpiScale)

 

Updates the DPI information of a Visual. It can only be called on a Visual without a parent.

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

public:
static void SetRootDpi(
	Visual^ visual,
	DpiScale dpiInfo
)

Parameters

visual
Type: System.Windows.Media::Visual^

A Visual object target.

dpiInfo
Type: System.Windows::DpiScale

DPI information for the target Visual.

.NET Framework
Available since 4.6.2
Return to top
Show: