DpiHelper.GetDeviceActualSize(FrameworkElement) 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 FrameworkElement that returns its Size in device units
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Size GetDeviceActualSize(System::Windows::FrameworkElement ^ element);
public static System.Windows.Size GetDeviceActualSize (this System.Windows.FrameworkElement element);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Size GetDeviceActualSize (this System.Windows.FrameworkElement element);
static member GetDeviceActualSize : System.Windows.FrameworkElement -> System.Windows.Size
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member GetDeviceActualSize : System.Windows.FrameworkElement -> System.Windows.Size
<Extension()>
Public Function GetDeviceActualSize (element As FrameworkElement) As Size
Parameters
- element
- FrameworkElement
FrameworkElement to inspect
Returns
Actual Size in device units
- Attributes