VisualTreeHelper.SetRootDpi(Visual, DpiScale) Methode

Definition

Aktualisiert die DPI-Informationen eines visuellen Elements. Kann nur in einem visuellen Element ohne übergeordnetes Element aufgerufen werden.

public:
 static void SetRootDpi(System::Windows::Media::Visual ^ visual, System::Windows::DpiScale dpiInfo);
public static void SetRootDpi (System.Windows.Media.Visual visual, System.Windows.DpiScale dpiInfo);
static member SetRootDpi : System.Windows.Media.Visual * System.Windows.DpiScale -> unit
Public Shared Sub SetRootDpi (visual As Visual, dpiInfo As DpiScale)

Parameter

visual
Visual

Ein visuelles Objektziel.

dpiInfo
DpiScale

DPI-Informationen für das visuelle Zielelement.

Gilt für