WindowBaseResized Event
Occurs when the window is resized.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public event EventHandler<WindowResizedEventArgs> Resized
Public Event Resized As EventHandler(Of WindowResizedEventArgs)
member Resized : IEvent<EventHandler<WindowResizedEventArgs>,
WindowResizedEventArgs>
Value
EventHandlerWindowResizedEventArgs
Although this event is similar to the
SizeChanged event, they are
conceptually different:
-
Resized is a window-level event, fired when a resize notification arrives
from the platform windowing subsystem. The event args contain details of the source of
the resize event in the
Reason property. This
event is raised before layout has been run on the window's content.
-
SizeChanged is a layout-level event, fired when a layout pass
completes on a control.
SizeChanged is present on all controls
and is fired when the control's size changes for any reason, including a
Resized event in the case of a Window.