Sets the width of the window. In device independent pixel.
windowInstance.Width = width
|real or int||width||The width of the window. In device independent pixel.|
window w = new window();
w.Width = 1000.0;
It's a wrapper of the System.Windows.FrameworkElement.Width property.
The setting value is the logical pixels.
This setter was modified to be able to set either real or int in the Ver 22.214.171.124.
The logical pixels is the device independent pixels (DIP).
How to convert from physical pixels to logical pixels is follows.
Horizontal : physical pixels / DpiScaleFactorX = logical pixels
Vertical : physical pixels / DpiScaleFactorY = logical pixels
Links for reference