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