Table of Contents

Class Flyout

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll
public class Flyout : PopupFlyoutBase, INotifyPropertyChanged, IPopupHostProvider
Inheritance
Flyout
Implements
Inherited Members

Constructors

Flyout()

public Flyout()

Fields

ContentProperty

Defines the Content property

public static readonly StyledProperty<object?> ContentProperty

Field Value

StyledProperty<object>

ContentTemplateProperty

Defines the ContentTemplate property.

public static readonly StyledProperty<IDataTemplate?> ContentTemplateProperty

Field Value

StyledProperty<IDataTemplate>

FlyoutPresenterThemeProperty

Defines the FlyoutPresenterTheme property.

public static readonly StyledProperty<ControlTheme?> FlyoutPresenterThemeProperty

Field Value

StyledProperty<ControlTheme>

Properties

Content

Gets or sets the content to display in this flyout

[Content]
public object? Content { get; set; }

Property Value

object

ContentTemplate

Gets or sets the data template used to display the content of the flyout.

public IDataTemplate? ContentTemplate { get; set; }

Property Value

IDataTemplate

FlyoutPresenterClasses

Gets the Classes collection to apply to the FlyoutPresenter this Flyout is hosting

public Classes FlyoutPresenterClasses { get; }

Property Value

Classes

FlyoutPresenterTheme

Gets or sets the ControlTheme that is applied to the container element generated for the flyout presenter.

public ControlTheme? FlyoutPresenterTheme { get; set; }

Property Value

ControlTheme

Methods

CreatePresenter()

Used to create the content the Flyout displays

protected override Control CreatePresenter()

Returns

Control

OnOpening(CancelEventArgs)

protected override void OnOpening(CancelEventArgs args)

Parameters

args CancelEventArgs