ICoreWindow.Bounds property

Specifies the property that gets the bounding rectangle of the window.

Syntax


Rect Bounds { get; }

Property value

Type: Rect

The bounding rectangle of the window, in DIPs.

Remarks

To convert from DIPs to physical pixels (and back), use the following equations (where DPI is the dots per inch value for the screen):

  • DIP value = (physical pixel x 96) / DPI
  • physical pixel value = (DIP x DPI) / 96

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

ICoreWindow
Rect

 

 

Show:
© 2015 Microsoft