Table of Contents

Class Flyout

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Represents a control that creates a pop-up window that displays information for an element in the interface.

[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))]
public class Flyout : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
Inheritance
Flyout
Implements
Inherited Members

Fields

ClosedEvent

Identifies the Closed routed event.

public static readonly RoutedEvent ClosedEvent

Field Value

RoutedEvent

IsOpenProperty

Identifies the IsOpen dependency property.

public static readonly DependencyProperty IsOpenProperty

Field Value

DependencyProperty

OpenedEvent

Identifies the Opened routed event.

public static readonly RoutedEvent OpenedEvent

Field Value

RoutedEvent

PlacementProperty

Identifies the Placement dependency property.

public static readonly DependencyProperty PlacementProperty

Field Value

DependencyProperty

Properties

IsOpen

Gets or sets a value indicating whether a Flyout is visible.

public bool IsOpen { get; set; }

Property Value

bool

Placement

Gets or sets the orientation of the Flyout control when the control opens, and specifies the behavior of the Popup control when it overlaps screen boundaries.

[Bindable(true)]
public PlacementMode Placement { get; set; }

Property Value

PlacementMode

Methods

Hide()

public void Hide()

OnApplyTemplate()

Invoked whenever application code or an internal process, such as a rebuilding layout pass, calls the ApplyTemplate method.

public override void OnApplyTemplate()

OnPopupClosed(object?, EventArgs)

protected virtual void OnPopupClosed(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

OnPopupOpened(object?, EventArgs)

protected virtual void OnPopupOpened(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

Show()

public void Show()

Events

Closed

Event triggered when Flyout is opened.

public event TypedEventHandler<Flyout, RoutedEventArgs> Closed

Event Type

TypedEventHandler<Flyout, RoutedEventArgs>

Opened

Event triggered when Flyout is opened.

public event TypedEventHandler<Flyout, RoutedEventArgs> Opened

Event Type

TypedEventHandler<Flyout, RoutedEventArgs>