SidebarPlacement Enum
Definition
Controls how the sidebar is positioned relative to the document canvas.
public enum SidebarPlacement
Fields
| Name | Description |
|---|---|
| Auto | Chooses on the same basis as the toolbar layout: the mobile/touch layout uses Avalonia.Controls.SidebarPlacement.Overlay; the desktop layout uses Avalonia.Controls.SidebarPlacement.Offset. Follows the effective Avalonia.Controls.PdfViewer.IsMobileLayout, so it tracks platform, width and overflow. Default. |
| Offset | The document canvas is offset to the right by the sidebar's width, so the sidebar and document sit side by side without overlapping. |
| Overlay | The sidebar floats over the left of the document, which stays centered in the full control. |
Auto Field
Chooses on the same basis as the toolbar layout: the mobile/touch layout uses Avalonia.Controls.SidebarPlacement.Overlay; the desktop layout uses Avalonia.Controls.SidebarPlacement.Offset. Follows the effective Avalonia.Controls.PdfViewer.IsMobileLayout, so it tracks platform, width and overflow. Default.
public Avalonia.Controls.SidebarPlacement Auto
Offset Field
The document canvas is offset to the right by the sidebar's width, so the sidebar and document sit side by side without overlapping.
public Avalonia.Controls.SidebarPlacement Offset
Overlay Field
The sidebar floats over the left of the document, which stays centered in the full control.
public Avalonia.Controls.SidebarPlacement Overlay