Udostępnij za pośrednictwem


DpiHelper.SetDeviceHeight(Window, Double) Method

Definition

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Window that sets its Height using device units

public:
[System::Runtime::CompilerServices::Extension]
 static void SetDeviceHeight(System::Windows::Window ^ window, double deviceHeight);
public static void SetDeviceHeight (this System.Windows.Window window, double deviceHeight);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static void SetDeviceHeight (this System.Windows.Window window, double deviceHeight);
static member SetDeviceHeight : System.Windows.Window * double -> unit
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member SetDeviceHeight : System.Windows.Window * double -> unit
<Extension()>
Public Sub SetDeviceHeight (window As Window, deviceHeight As Double)

Parameters

window
Window

Window to modify

deviceHeight
Double

New height in device units

Attributes

Applies to