DpiHelper.GetDeviceWidth(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.
Gets the window's Width in device units
public:
double GetDeviceWidth(System::Windows::Window ^ window);
public double GetDeviceWidth (System.Windows.Window window);
member this.GetDeviceWidth : System.Windows.Window -> double
Public Function GetDeviceWidth (window As Window) As Double
Parameters
- window
- Window
Window to inspect
Returns
Width in device units