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
IsOpenProperty
Defines the IsOpen property
public static readonly DirectProperty<FlyoutBase, bool> IsOpenProperty
Field Value
TargetProperty
Defines the Target property
public static readonly DirectProperty<FlyoutBase, Control?> TargetProperty
Field Value
Properties
IsOpen
Gets whether this Flyout is currently Open
public bool IsOpen { get; protected set; }
Property Value
Target
Gets the Target used for showing the Flyout
public Control? Target { get; protected set; }
Property Value
Methods
GetAttachedFlyout(Control)
public static FlyoutBase? GetAttachedFlyout(Control element)
Parameters
element
Control
Returns
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
Controlvalue
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
Opened
public event EventHandler? Opened