DpiHelper.SetDeviceWidth(Window, Double) 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 sets its Width using device units
public:
[System::Runtime::CompilerServices::Extension]
static void SetDeviceWidth(System::Windows::Window ^ window, double deviceWidth);
public static void SetDeviceWidth (this System.Windows.Window window, double deviceWidth);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static void SetDeviceWidth (this System.Windows.Window window, double deviceWidth);
static member SetDeviceWidth : System.Windows.Window * double -> unit
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member SetDeviceWidth : System.Windows.Window * double -> unit
<Extension()>
Public Sub SetDeviceWidth (window As Window, deviceWidth As Double)
Parameters
- window
- Window
Window to modify
- deviceWidth
- Double
New width in device units
- Attributes