DpiHelper.GetDeviceRect(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 Rectangle in device units
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Rect GetDeviceRect(System::Windows::Window ^ window);
public static System.Windows.Rect GetDeviceRect (this System.Windows.Window window);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Rect GetDeviceRect (this System.Windows.Window window);
static member GetDeviceRect : System.Windows.Window -> System.Windows.Rect
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member GetDeviceRect : System.Windows.Window -> System.Windows.Rect
<Extension()>
Public Function GetDeviceRect (window As Window) As Rect
Parameters
- window
- Window
Window to inspect
Returns
Window rectangle in device units
- Attributes