Table of Contents

Class FlyoutBase

Namespace
Avalonia.Controls.Primitives
Assembly
Avalonia.Controls.dll
public abstract class FlyoutBase : AvaloniaObject, INotifyPropertyChanged
Inheritance
FlyoutBase
Implements
Derived
Inherited Members

Constructors

FlyoutBase()

protected FlyoutBase()

Fields

AttachedFlyoutProperty

Defines the AttachedFlyout property

public static readonly AttachedProperty<FlyoutBase?> AttachedFlyoutProperty

Field Value

AttachedProperty<FlyoutBase>

IsOpenProperty

Defines the IsOpen property

public static readonly DirectProperty<FlyoutBase, bool> IsOpenProperty

Field Value

DirectProperty<FlyoutBase, bool>

TargetProperty

Defines the Target property

public static readonly DirectProperty<FlyoutBase, Control?> TargetProperty

Field Value

DirectProperty<FlyoutBase, Control>

Properties

IsOpen

Gets whether this Flyout is currently Open

public bool IsOpen { get; protected set; }

Property Value

bool

Target

Gets the Target used for showing the Flyout

public Control? Target { get; protected set; }

Property Value

Control

Methods

GetAttachedFlyout(Control)

public static FlyoutBase? GetAttachedFlyout(Control element)

Parameters

element Control

Returns

FlyoutBase

Hide()

public abstract void Hide()

OnClosed()

protected virtual void OnClosed()

OnOpened()

protected virtual void OnOpened()

SetAttachedFlyout(Control, FlyoutBase?)

public static void SetAttachedFlyout(Control element, FlyoutBase? value)

Parameters

element Control
value FlyoutBase

ShowAt(Control)

public abstract void ShowAt(Control placementTarget)

Parameters

placementTarget Control

ShowAttachedFlyout(Control)

public static void ShowAttachedFlyout(Control flyoutOwner)

Parameters

flyoutOwner Control

Events

Closed

public event EventHandler? Closed

Event Type

EventHandler

Opened

public event EventHandler? Opened

Event Type

EventHandler