DpiHelper.SetDeviceWidth(Window, Double) Метод

Определение

Внимание!

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Только для внутреннего использования в корпорации Майкрософт.

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)

Параметры

window
Window

Окно для изменения

deviceWidth
Double

Новая ширина в единицах устройства

Атрибуты

Применяется к