Skip to main content

Flyout

C# API / Fluence.Wpf.Controls

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Controls
public class Flyout : FlyoutBase

Represents a flyout that displays arbitrary content on the Fluent flyout surface, mirroring the WinUI 3 Flyout control. The content is hosted in a FlyoutPresenter inside a light-dismiss popup.

Base type: FlyoutBase

C# source

Constructors​

Flyout​

public Flyout()

Creates a new Flyout instance.

Properties​

Content​

public object? Content { get; set; }

Gets or sets the content shown in the flyout.

Remarks: The content is hosted in an unparented popup, so it does not live in the placement target's name scope: ElementName (and RelativeSource FindAncestor walks above the presenter) bindings inside the content do not resolve. The presenter inherits the placement target's DataContext while the flyout is open, so plain Binding paths against the anchor's view model work as expected.

FlyoutPresenterStyle​

public Style? FlyoutPresenterStyle { get; set; }

Gets or sets the style applied to the FlyoutPresenter that hosts Content. When null, the default themed presenter style is used.

Methods​

CreatePresenter​

protected override FrameworkElement CreatePresenter()

Creates (or returns the cached) FlyoutPresenter with its Content bound to Content and FlyoutPresenterStyle applied when set.

Returns: The presenter hosting the flyout content.

Dependency property identifiers​

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

ContentProperty​

public static readonly DependencyProperty ContentProperty

Identifies the Content dependency property.

FlyoutPresenterStyleProperty​

public static readonly DependencyProperty FlyoutPresenterStyleProperty

Identifies the FlyoutPresenterStyle dependency property.