Flyout
A popup surface anchored to another component that opens/closes on interaction and hosts arbitrary content.
new FlyoutComponent("flyout")
Properties
| Property | Type | Default | Binding | Description |
|---|---|---|---|---|
IsOpenSetIsOpen · BindIsOpen | bool? | false | two-way | Whether the flyout is open; two-way, so an anchor click, an outside click or Escape syncs back. |
FlyoutPlacementSetFlyoutPlacement · BindFlyoutPlacement | UIPopupPlacement? | UIPopupPlacement.BottomStart | one-way | The preferred placement of the flyout relative to its anchor. |
CloseOnBackdropSetCloseOnBackdrop · BindCloseOnBackdrop | bool? | true | one-way | Whether clicking outside the flyout closes it. |
CloseOnEscapeSetCloseOnEscape · BindCloseOnEscape | bool? | true | one-way | Whether pressing Escape closes the flyout. |
Events
OnOpen(string command)- Registers a command to invoke when the flyout is opened.
OnOpen(string command, params KeyValuePair<string, UIActionArgument>[] arguments)- Registers a command with bound arguments to invoke when the flyout is opened.
OnOpenLiteral(string command, params KeyValuePair<string, object>[] arguments)- Registers a command with literal arguments to invoke when the flyout is opened.
OnClose(string command)- Registers a command to invoke when the flyout is closed.
OnClose(string command, params KeyValuePair<string, UIActionArgument>[] arguments)- Registers a command with bound arguments to invoke when the flyout is closed.
OnCloseLiteral(string command, params KeyValuePair<string, object>[] arguments)- Registers a command with literal arguments to invoke when the flyout is closed.
Methods
SetAnchor(IVisualComponent component)- Sets the anchor region the flyout is positioned relative to.
SetContent(IVisualComponent component)- Sets the content region shown inside the flyout.
Open()- Sets
FlyoutComponent.IsOpentotrue. Close()- Sets
FlyoutComponent.IsOpentofalse.
Common properties (16) — layout, visibility, theme, and the rest every component shares
| Property | Type | Default | Binding | Description |
|---|---|---|---|---|
VisibilitySetVisibility · BindVisibility | UIResponsive<UIVisibility>? | Visible | one-way | What the component does with the room it was given, optionally overridden per breakpoint (e.g. collapsed from a given width up). |
EnabledSetEnabled · BindEnabled | bool? | true | one-way | Whether the component responds to input; false dims it and marks it, and its subtree, inert. |
ThemeSetTheme · BindTheme | UIThemeMode? | null | one-way | The theme mode forced on this component's subtree, or null to inherit the ambient theme. |
HorizontalAlignmentSetHorizontalAlignment · BindHorizontalAlignment | UIAlignment? | UIAlignment.Stretch | one-way | Where the component sits within its grid cell along the horizontal axis. |
VerticalAlignmentSetVerticalAlignment · BindVerticalAlignment | UIAlignment? | UIAlignment.Stretch | one-way | Where the component sits within its grid cell along the vertical axis. |
WidthSetWidth · BindWidth | UIResponsive<UILayoutLength>? | null | one-way | The component width, optionally overridden per breakpoint. |
MinWidthSetMinWidth · BindMinWidth | UIResponsive<UILayoutLength>? | null | one-way | The component minimum width, optionally overridden per breakpoint. |
MaxWidthSetMaxWidth · BindMaxWidth | UIResponsive<UILayoutLength>? | null | one-way | The component maximum width, optionally overridden per breakpoint. |
HeightSetHeight · BindHeight | UIResponsive<UILayoutLength>? | null | one-way | The component height, optionally overridden per breakpoint. |
MinHeightSetMinHeight · BindMinHeight | UIResponsive<UILayoutLength>? | null | one-way | The component minimum height, optionally overridden per breakpoint. |
MaxHeightSetMaxHeight · BindMaxHeight | UIResponsive<UILayoutLength>? | null | one-way | The component maximum height, optionally overridden per breakpoint. |
ZIndexSetZIndex · BindZIndex | int? | 0 | one-way | The stacking order within the visual tree. |
MarginSetMargin · BindMargin | UIResponsive<UIThickness>? | null | one-way | The outer spacing around the component, optionally overridden per breakpoint. |
PlacementSetPlacement · BindPlacement | UIResponsive<UIGridPlacement>? | null | one-way | The grid placement, optionally overridden per breakpoint. |
LoadingSetLoading · BindLoading | bool? | false | one-way | Whether the component is in loading state — a live state a controller turns on and off. |
ShowContextMenuSetShowContextMenu · BindShowContextMenu | bool? | true | one-way | Whether a right-click opens the IVisualComponent.ContextMenu; on a host with rows, whether it opens any row's. Off, the menu stays in the tree and nothing opens it. |