C# Class Fluent.DropDownButton

Inheritance: RibbonControl
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство Type Description
CanAddToQuickAccessToolBarProperty System.Windows.DependencyProperty
DropDownHeightProperty System.Windows.DependencyProperty
HasTriangleProperty System.Windows.DependencyProperty
HeaderProperty System.Windows.DependencyProperty
IconProperty System.Windows.DependencyProperty
IsDropDownOpenProperty System.Windows.DependencyProperty
LargeIconProperty System.Windows.DependencyProperty
MaxDropDownHeightProperty System.Windows.DependencyProperty
ResizeModeProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
CoerceToolTipIsEnabled object
DropDownButton System
KeyDownHandler void
NavigateToContainer void
OnDropDownClosed void
OnDropDownOpened void
OnDropDownPopupKeyUp void
OnIconChanged void
OnIsDropDownOpenChanged void
OnLoaded void
OnMenuPanelLoaded void
OnResizeBothDelta void
OnResizeVerticalDelta void
OnUnloaded void
SubscribeEvents void
UnSubscribeEvents void

Méthodes publiques

Méthode Description
CreateQuickAccessItem ( ) : FrameworkElement

Gets control which represents shortcut item. This item MUST be synchronized with the original and send command to original one control.

OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.

OnKeyTipBack ( ) : void

Handles back navigation with KeyTips

OnKeyTipPressed ( ) : void

Handles key tip pressed

Méthodes protégées

Méthode Description
BindQuickAccessItem ( FrameworkElement element ) : void

This method must be overridden to bind properties to use in quick access creating

BindQuickAccessItemDropDownEvents ( DropDownButton button ) : void

Binds the DropDownClosed and DropDownOpened events to the created quick access item

GetContainerForItemOverride ( ) : DependencyObject

Creates or identifies the element that is used to display the given item.

IsItemItsOwnContainerOverride ( object item ) : bool

Determines if the specified item is (or is eligible to be) its own container.

OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Responds to a change to the P:System.Windows.UIElement.IsKeyboardFocusWithin property.

OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void

Provides class handling for the E:System.Windows.UIElement.KeyDown routed event that occurs when the user presses a key.

OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Invoked when an unhandled System.Windows.UIElement.PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnQuickAccessMenuClosed ( object sender, EventArgs e ) : void

Handles quick access button drop down menu closed

OnQuickAccessOpened ( object sender, EventArgs e ) : void

Handles quick access button drop down menu opened

Private Methods

Méthode Description
CoerceToolTipIsEnabled ( DependencyObject d, object basevalue ) : object
DropDownButton ( ) : System
KeyDownHandler ( System.Windows.Input.KeyEventArgs e ) : void
NavigateToContainer ( DependencyObject container ) : void
OnDropDownClosed ( ) : void
OnDropDownOpened ( ) : void
OnDropDownPopupKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnIconChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsDropDownOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnMenuPanelLoaded ( object sender, RoutedEventArgs e ) : void
OnResizeBothDelta ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnResizeVerticalDelta ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnUnloaded ( object sender, RoutedEventArgs e ) : void
SubscribeEvents ( ) : void
UnSubscribeEvents ( ) : void

Method Details

BindQuickAccessItem() protected méthode

This method must be overridden to bind properties to use in quick access creating
protected BindQuickAccessItem ( FrameworkElement element ) : void
element System.Windows.FrameworkElement Toolbar item
Résultat void

BindQuickAccessItemDropDownEvents() protected méthode

Binds the DropDownClosed and DropDownOpened events to the created quick access item
protected BindQuickAccessItemDropDownEvents ( DropDownButton button ) : void
button DropDownButton Toolbar item
Résultat void

CreateQuickAccessItem() public méthode

Gets control which represents shortcut item. This item MUST be synchronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
Résultat System.Windows.FrameworkElement

GetContainerForItemOverride() protected méthode

Creates or identifies the element that is used to display the given item.
protected GetContainerForItemOverride ( ) : DependencyObject
Résultat System.Windows.DependencyObject

IsItemItsOwnContainerOverride() protected méthode

Determines if the specified item is (or is eligible to be) its own container.
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object The item to check.
Résultat bool

OnApplyTemplate() public méthode

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
Résultat void

OnIsKeyboardFocusWithinChanged() protected méthode

Responds to a change to the P:System.Windows.UIElement.IsKeyboardFocusWithin property.
protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs The event data for the event.
Résultat void

OnKeyDown() protected méthode

Provides class handling for the E:System.Windows.UIElement.KeyDown routed event that occurs when the user presses a key.
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs The event data for the event.
Résultat void

OnKeyTipBack() public méthode

Handles back navigation with KeyTips
public OnKeyTipBack ( ) : void
Résultat void

OnKeyTipPressed() public méthode

Handles key tip pressed
public OnKeyTipPressed ( ) : void
Résultat void

OnPreviewMouseLeftButtonDown() protected méthode

Invoked when an unhandled System.Windows.UIElement.PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The System.Windows.Input.MouseButtonEventArgs that contains the event data. /// The event data reports that the left mouse button was pressed.
Résultat void

OnQuickAccessMenuClosed() protected méthode

Handles quick access button drop down menu closed
protected OnQuickAccessMenuClosed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnQuickAccessOpened() protected méthode

Handles quick access button drop down menu opened
protected OnQuickAccessOpened ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

CanAddToQuickAccessToolBarProperty public_oe static_oe property

Using a DependencyProperty as the backing store for CanAddToQuickAccessToolBar. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CanAddToQuickAccessToolBarProperty
Résultat System.Windows.DependencyProperty

DropDownHeightProperty public_oe static_oe property

/Using a DependencyProperty as the backing store for InitialDropDownHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows DropDownHeightProperty
Résultat System.Windows.DependencyProperty

HasTriangleProperty public_oe static_oe property

Using a DependencyProperty as the backing store for HasTriangle. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows HasTriangleProperty
Résultat System.Windows.DependencyProperty

HeaderProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Header. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows HeaderProperty
Résultat System.Windows.DependencyProperty

IconProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Icon. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IconProperty
Résultat System.Windows.DependencyProperty

IsDropDownOpenProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsOpen. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsDropDownOpenProperty
Résultat System.Windows.DependencyProperty

LargeIconProperty public_oe static_oe property

Using a DependencyProperty as the backing store for SmallIcon. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows LargeIconProperty
Résultat System.Windows.DependencyProperty

MaxDropDownHeightProperty public_oe static_oe property

Using a DependencyProperty as the backing store for MaxDropDownHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxDropDownHeightProperty
Résultat System.Windows.DependencyProperty

ResizeModeProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ResizeMode. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ResizeModeProperty
Résultat System.Windows.DependencyProperty