C# Class MahApps.Metro.Controls.Flyout

Inheritance: System.Windows.Controls.ContentControl
显示文件 Open project: MahApps/MahApps.Metro Class Usage Examples

Public Properties

Property Type Description
AllowFocusElementProperty System.Windows.DependencyProperty
AnimateOnPositionChangeProperty System.Windows.DependencyProperty
AnimateOpacityProperty System.Windows.DependencyProperty
AreAnimationsEnabledProperty System.Windows.DependencyProperty
AutoCloseIntervalProperty System.Windows.DependencyProperty
CloseButtonIsCancelProperty System.Windows.DependencyProperty
CloseButtonVisibilityProperty System.Windows.DependencyProperty
CloseCommandParameterProperty System.Windows.DependencyProperty
CloseCommandProperty System.Windows.DependencyProperty
ClosingFinishedEvent System.Windows.RoutedEvent
ExternalCloseButtonProperty System.Windows.DependencyProperty
FocusedElementProperty System.Windows.DependencyProperty
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
IsAutoCloseEnabledProperty System.Windows.DependencyProperty
IsModalProperty System.Windows.DependencyProperty
IsOpenChangedEvent System.Windows.RoutedEvent
IsOpenProperty System.Windows.DependencyProperty
IsPinnedProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
ThemeProperty System.Windows.DependencyProperty
TitleVisibilityProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AnimateOpacityChanged void
ApplyAnimation void
AutoCloseIntervalChanged void
AutoCloseTimerCallback void
ChangeFlyoutTheme void
DetectTheme Accent>.Tuple
Flyout System
Hide void
HideStoryboardCompleted void
InitializeAutoCloseTimer void
InternalCloseCommandCanExecute bool
InternalCloseCommandExecuteAction void
IsAutoCloseEnabledChanged void
IsOpenedChanged void
PositionChanged void
StartAutoCloseTimer void
StopAutoCloseTimer void
ThemeChanged void
TryFocusElement void
UpdateFlyoutTheme void
UpdateOpacityChange void
WindowTitleThumbChangeWindowStateOnMouseDoubleClick void
WindowTitleThumbMoveOnDragDelta void
WindowTitleThumbOnDragCompleted void
WindowTitleThumbOnDragStarted void
WindowTitleThumbOnPreviewMouseLeftButtonUp void
WindowTitleThumbSystemMenuOnMouseRightButtonUp void

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
CleanUp ( FlyoutsControl flyoutsControl ) : void
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Private Methods

Method Description
AnimateOpacityChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ApplyAnimation ( Position position, bool animateOpacity, bool resetShowFrame = true ) : void
AutoCloseIntervalChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
AutoCloseTimerCallback ( Object sender, EventArgs e ) : void
ChangeFlyoutTheme ( Accent windowAccent, AppTheme windowTheme ) : void
DetectTheme ( Flyout flyout ) : Accent>.Tuple
Flyout ( ) : System
Hide ( ) : void
HideStoryboardCompleted ( object sender, EventArgs e ) : void
InitializeAutoCloseTimer ( ) : void
InternalCloseCommandCanExecute ( object o ) : bool
InternalCloseCommandExecuteAction ( object o ) : void
IsAutoCloseEnabledChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsOpenedChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
PositionChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
StartAutoCloseTimer ( ) : void
StopAutoCloseTimer ( ) : void
ThemeChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TryFocusElement ( ) : void
UpdateFlyoutTheme ( ) : void
UpdateOpacityChange ( ) : void
WindowTitleThumbChangeWindowStateOnMouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs mouseButtonEventArgs ) : void
WindowTitleThumbMoveOnDragDelta ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs dragDeltaEventArgs ) : void
WindowTitleThumbOnDragCompleted ( object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e ) : void
WindowTitleThumbOnDragStarted ( object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e ) : void
WindowTitleThumbOnPreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
WindowTitleThumbSystemMenuOnMouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

CleanUp() protected method

protected CleanUp ( FlyoutsControl flyoutsControl ) : void
flyoutsControl FlyoutsControl
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

Property Details

AllowFocusElementProperty public_oe static_oe property

public static DependencyProperty,System.Windows AllowFocusElementProperty
return System.Windows.DependencyProperty

AnimateOnPositionChangeProperty public_oe static_oe property

public static DependencyProperty,System.Windows AnimateOnPositionChangeProperty
return System.Windows.DependencyProperty

AnimateOpacityProperty public_oe static_oe property

public static DependencyProperty,System.Windows AnimateOpacityProperty
return System.Windows.DependencyProperty

AreAnimationsEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows AreAnimationsEnabledProperty
return System.Windows.DependencyProperty

AutoCloseIntervalProperty public_oe static_oe property

public static DependencyProperty,System.Windows AutoCloseIntervalProperty
return System.Windows.DependencyProperty

CloseButtonIsCancelProperty public_oe static_oe property

public static DependencyProperty,System.Windows CloseButtonIsCancelProperty
return System.Windows.DependencyProperty

CloseButtonVisibilityProperty public_oe static_oe property

public static DependencyProperty,System.Windows CloseButtonVisibilityProperty
return System.Windows.DependencyProperty

CloseCommandParameterProperty public_oe static_oe property

public static DependencyProperty,System.Windows CloseCommandParameterProperty
return System.Windows.DependencyProperty

CloseCommandProperty public_oe static_oe property

public static DependencyProperty,System.Windows CloseCommandProperty
return System.Windows.DependencyProperty

ClosingFinishedEvent public_oe static_oe property

An event that is raised when the closing animation has finished.
public static RoutedEvent,System.Windows ClosingFinishedEvent
return System.Windows.RoutedEvent

ExternalCloseButtonProperty public_oe static_oe property

public static DependencyProperty,System.Windows ExternalCloseButtonProperty
return System.Windows.DependencyProperty

FocusedElementProperty public_oe static_oe property

public static DependencyProperty,System.Windows FocusedElementProperty
return System.Windows.DependencyProperty

HeaderProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderProperty
return System.Windows.DependencyProperty

HeaderTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows HeaderTemplateProperty
return System.Windows.DependencyProperty

IsAutoCloseEnabledProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsAutoCloseEnabledProperty
return System.Windows.DependencyProperty

IsModalProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsModalProperty
return System.Windows.DependencyProperty

IsOpenChangedEvent public_oe static_oe property

An event that is raised when IsOpen changes.
public static RoutedEvent,System.Windows IsOpenChangedEvent
return System.Windows.RoutedEvent

IsOpenProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsOpenProperty
return System.Windows.DependencyProperty

IsPinnedProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsPinnedProperty
return System.Windows.DependencyProperty

PositionProperty public_oe static_oe property

public static DependencyProperty,System.Windows PositionProperty
return System.Windows.DependencyProperty

ThemeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ThemeProperty
return System.Windows.DependencyProperty

TitleVisibilityProperty public_oe static_oe property

public static DependencyProperty,System.Windows TitleVisibilityProperty
return System.Windows.DependencyProperty