AppWindow.Size Property
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.
Gets the current size of the window in screen coordinates.
public:
property SizeInt32 Size { SizeInt32 get(); };
SizeInt32 Size();
public SizeInt32 Size { get; }
var sizeInt32 = appWindow.size;
Public ReadOnly Property Size As SizeInt32
Property Value
The current size of the window in screen coordinates.
Remarks
To get the size of only the client area of the window, use the ClientSize property.
Screen coordinates are relative to the upper-left corner of the screen; the coordinates of the upper-left corner are (0,0). For more information, see Window Coordinate System (Win32).
Applies to
See also
- AppWindow
- ClientSize
- <xref:Microsoft.UI.Windowing.AppWindow.Resize(Windows.Graphics.SizeInt32)+%5bWindow+Coordinate+System+(Win32)%5d(%2fwindows%2fwin32%2fgdi%2fwindow-coordinate-system)>
- Windows Forms coordinates