public sealed record DesktopSidePanelOptions : IEquatable<DesktopSidePanelOptions> What DesktopWindow.OpenSidePanelAsync opens: a page of the window's surface beside its page.
Constructors
DesktopSidePanelOptions
public DesktopSidePanelOptions() Obsolete. Constructors of types with required members are not supported in this version of your compiler.
Fields
MinimumWidth
public const int MinimumWidth = 120 The smallest DesktopSidePanelOptions.Width, in device-independent pixels.
Properties
Edge
public DesktopWindowEdge Edge { get; init; } Gets the edge of the window that grows: DesktopWindowEdge.End, the default, is the right edge of a left-to-right window and the left edge of a right-to-left one (DesktopWindow.LayoutDirection).
LoadTimeout
public TimeSpan LoadTimeout { get; init; } Gets how long the panel's page may take to load before the window grows; ten seconds by default. A page that does not load in time refuses the panel with DesktopSidePanelRefusal.LoadFailed, and the window does not change.
Path
public required string Path { get; init; } Gets the page the panel shows: a path relative to the address the window's page opened with, such as side-panel, /side-panel (the same: a leading / stays inside the surface), side-panel?tab=log or #/side-panel for a hash router.
Remarks
The panel's page is another page of the same surface: same origin, same profile and storage, and a connection of its own to the same window, so it binds to the window's ViewModel tree. It does not follow or drive the window's navigation path. An absolute URL, a scheme or a path that leaves the surface (..) is refused with ArgumentException.
Width
public required int Width { get; init; } Gets the panel's width in the units of DesktopWindow.ResizeAsync: device-independent pixels on Windows, points on macOS, logical pixels on Linux. At least DesktopSidePanelOptions.MinimumWidth; a width over half the monitor's work area is refused with DesktopSidePanelRefusal.NoRoom.
Remarks
The window converts it once into native units with its scale and grows by exactly that many, so closing the panel gives the window back its exact bounds (DesktopSidePanel.CloseAsync).