Skip to main content

SidebarPlacement Enum

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Controls how the sidebar is positioned relative to the document canvas.

public enum SidebarPlacement

Inheritance: Enum -> SidebarPlacement

Fields

NameDescription
AutoChooses 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.
OffsetThe document canvas is offset to the right by the sidebar's width, so the sidebar and document sit side by side without overlapping.
OverlayThe 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