Condividi tramite


DpiHelper.SetDeviceTop(Window, Double) Method

Definition

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Window that sets its Top coordinate using device units

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

Parameters

window
Window

Window to modify

deviceTop
Double

New top coordinate in device units

Attributes

Applies to