MahApps.Metro by Paul Jenkins; Jake Ginnivan; Brendan Forster (shiftkey); Alex Mitchell (Amrykid); Dennis Daume (flagbug); Jan Karger (punker76)

<PackageReference Include="MahApps.Metro" Version="1.1.1" />

.NET API 905,312 bytes

 Flyout

public class Flyout : ContentControl
A sliding panel control that is hosted in a MetroWindow via a FlyoutsControl. MetroWindow FlyoutsControl

public static readonly RoutedEvent ClosingFinishedEvent

An event that is raised when the closing animation has finished.

public static readonly DependencyProperty HeaderProperty

public static readonly DependencyProperty IsModalProperty

public static readonly RoutedEvent IsOpenChangedEvent

An event that is raised when IsOpen changes.

public static readonly DependencyProperty IsOpenProperty

public static readonly DependencyProperty IsPinnedProperty

public static readonly DependencyProperty PositionProperty

public static readonly DependencyProperty ThemeProperty

public bool AllowFocusElement { get; set; }

Gets or sets a value indicating whether the flyout should try focus an element.

public bool AnimateOnPositionChange { get; set; }

Gets/sets whether this flyout uses the open/close animation when changing the Position property. (default is true)

public bool AnimateOpacity { get; set; }

Gets/sets whether this flyout animates the opacity of the flyout when opening/closing.

public bool AreAnimationsEnabled { get; set; }

public Visibility CloseButtonVisibility { get; set; }

Gets/sets if the close button is visible in this flyout.

public ICommand CloseCommand { get; set; }

An ICommand that executes when the flyout's close button is clicked. Note that this won't execute when IsOpen is set to false.

public MouseButton ExternalCloseButton { get; set; }

Gets/sets the mouse button that closes the flyout on an external mouse click.

public FrameworkElement FocusedElement { get; set; }

Gets or sets the focused element.

public string Header { get; set; }

Gets/sets the flyout's header.

public DataTemplate HeaderTemplate { get; set; }

A DataTemplate for the flyout's header.

public bool IsModal { get; set; }

Gets/sets whether this flyout is modal.

public bool IsOpen { get; set; }

Gets/sets whether this flyout is visible.

public bool IsPinned { get; set; }

Gets/sets whether this flyout stays open when the user clicks outside of it.

public Position Position { get; set; }

Gets/sets this flyout's position in the FlyoutsControl/MetroWindow.

public FlyoutTheme Theme { get; set; }

Gets or sets the theme of this flyout.

public Visibility TitleVisibility { get; set; }

Gets/sets if the title is visible in this flyout.

public Flyout()