public interface IDesktopWindowStateHost : IDesktopWindowHost, IAsyncDisposable An optional native host that reports its window's bounds, maximized and full-screen state.
Remarks
Runic Desktop reads IDesktopWindowStateHost.State when IDesktopWindowStateHost.StateChanged is raised and passes it to DesktopWindow.State and DesktopWindow.StateChanged. Report DesktopWindowCapabilities.State in IDesktopWindowHost.Capabilities and apply DesktopWindowHostOptions.Placement when opening. Use the units of the host's own IDesktopWindowHost.MoveAsync and IDesktopWindowHost.ResizeAsync.
Properties
State
DesktopWindowState? State { get; } Gets the window's current state, or null before the window has reported one.
Remarks
Keep the last state after the window closes. Called from any thread; keep it cheap.
Events
StateChanged
event EventHandler? StateChanged Occurs after IDesktopWindowStateHost.State has changed. It may be raised on the window's owning thread.