C# Класс Fluent.DropDownButton

Наследование: RibbonControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BindQuickAccessItem() защищенный Метод

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
Результат void

BindQuickAccessItemDropDownEvents() защищенный Метод

Binds the DropDownClosed and DropDownOpened events to the created quick access item
protected BindQuickAccessItemDropDownEvents ( DropDownButton button ) : void
button DropDownButton Toolbar item
Результат void

CreateQuickAccessItem() публичный Метод

Gets control which represents shortcut item. This item MUST be synchronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
Результат System.Windows.FrameworkElement

GetContainerForItemOverride() защищенный Метод

Creates or identifies the element that is used to display the given item.
protected GetContainerForItemOverride ( ) : DependencyObject
Результат System.Windows.DependencyObject

IsItemItsOwnContainerOverride() защищенный Метод

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.
Результат bool

OnApplyTemplate() публичный Метод

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
Результат void

OnIsKeyboardFocusWithinChanged() защищенный Метод

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.
Результат void

OnKeyDown() защищенный Метод

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.
Результат void

OnKeyTipBack() публичный Метод

Handles back navigation with KeyTips
public OnKeyTipBack ( ) : void
Результат void

OnKeyTipPressed() публичный Метод

Handles key tip pressed
public OnKeyTipPressed ( ) : void
Результат void

OnPreviewMouseLeftButtonDown() защищенный Метод

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.
Результат void

OnQuickAccessMenuClosed() защищенный Метод

Handles quick access button drop down menu closed
protected OnQuickAccessMenuClosed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

OnQuickAccessOpened() защищенный Метод

Handles quick access button drop down menu opened
protected OnQuickAccessOpened ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

CanAddToQuickAccessToolBarProperty публичное статическое свойство

Using a DependencyProperty as the backing store for CanAddToQuickAccessToolBar. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CanAddToQuickAccessToolBarProperty
Результат System.Windows.DependencyProperty

DropDownHeightProperty публичное статическое свойство

/Using a DependencyProperty as the backing store for InitialDropDownHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows DropDownHeightProperty
Результат System.Windows.DependencyProperty

HasTriangleProperty публичное статическое свойство

Using a DependencyProperty as the backing store for HasTriangle. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows HasTriangleProperty
Результат System.Windows.DependencyProperty

HeaderProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Header. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows HeaderProperty
Результат System.Windows.DependencyProperty

IconProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Icon. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IconProperty
Результат System.Windows.DependencyProperty

IsDropDownOpenProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsOpen. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsDropDownOpenProperty
Результат System.Windows.DependencyProperty

LargeIconProperty публичное статическое свойство

Using a DependencyProperty as the backing store for SmallIcon. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows LargeIconProperty
Результат System.Windows.DependencyProperty

MaxDropDownHeightProperty публичное статическое свойство

Using a DependencyProperty as the backing store for MaxDropDownHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxDropDownHeightProperty
Результат System.Windows.DependencyProperty

ResizeModeProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ResizeMode. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ResizeModeProperty
Результат System.Windows.DependencyProperty