DpiHelper.GetDeviceTop(Window) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.
Extension method for Window that returns its Top coordinate in device units
public:
[System::Runtime::CompilerServices::Extension]
static double GetDeviceTop(System::Windows::Window ^ window);
public static double GetDeviceTop (this System.Windows.Window window);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static double GetDeviceTop (this System.Windows.Window window);
static member GetDeviceTop : System.Windows.Window -> double
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member GetDeviceTop : System.Windows.Window -> double
<Extension()>
Public Function GetDeviceTop (window As Window) As Double
Parameters
- window
- Window
Window to inspect
Returns
Top coordinate in device units
- Attributes