Skip to main content

CommandBarFlyoutPresenter

C# API / Fluence.Wpf.Controls

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Controls
public class CommandBarFlyoutPresenter : Control

Displays the commands of a CommandBarFlyout on the canonical Fluent flyout surface: a horizontal primary bar, a more button shown while secondary commands exist, and a collapsible overflow menu below the bar toggled via IsExpanded. The themed template lives in Themes/Controls/CommandBarFlyout.xaml.

Remarks: Clicking any AppBarButton hosted in the presenter (other than the more button) dismisses the owning flyout after the button's normal Click handling, matching the WinUI command-dismiss behavior. The WinUI AlwaysExpanded option is omitted for v1, so the overflow collapses again whenever the flyout closes.

Base type: Control (including inherited WPF and .NET members)

C# source

Constructors​

CommandBarFlyoutPresenter​

public CommandBarFlyoutPresenter()

Initializes a new instance of the CommandBarFlyoutPresenter class and subscribes a handled-too ClickEvent handler so any command invoked inside the presenter also dismisses the owning flyout.

Properties​

IsExpanded​

public bool IsExpanded { get; set; }

Gets or sets a value indicating whether the secondary (overflow) command area below the primary bar is visible. Toggled by the more button; reset to false whenever the owning flyout closes.

Methods​

OnApplyTemplate​

public override void OnApplyTemplate()

Documentation inherited from the Control API.

Dependency property identifiers​

Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.

IsExpandedProperty​

public static readonly DependencyProperty IsExpandedProperty

Identifies the IsExpanded dependency property.