C# Class Fluent.ComboBox

Inheritance: System.Windows.Controls.ComboBox, IQuickAccessItemProvider, IRibbonControl, IDropDownControl
ファイルを表示 Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
CanAddToQuickAccessToolBarProperty System.Windows.DependencyProperty
DropDownHeightProperty System.Windows.DependencyProperty
GroupByProperty System.Windows.DependencyProperty
HeaderProperty System.Windows.DependencyProperty
IconProperty System.Windows.DependencyProperty
InputWidthProperty System.Windows.DependencyProperty
ItemHeightProperty System.Windows.DependencyProperty
MenuProperty System.Windows.DependencyProperty
ResizeModeProperty System.Windows.DependencyProperty
ShowPopupOnTopProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CoerceSelectedItem object
ComboBox System
CustomPopupPlacementMethod System.Windows.Controls.Primitives.CustomPopupPlacement[]
Freeze void
OnContentBorderPreviewMouseDown void
OnFirstLoaded void
OnFocusedElementLostKeyboardFocus void
OnIconChanged void
OnQuickAccessMenuClosed void
OnQuickAccessOpened void
OnQuickAccessTextBoxGetFocus void
OnQuickAccessTextBoxLostFocus void
OnResizeBothDelta void
OnResizeVerticalDelta void
OnSelectionItemChanged void
SetDragHeight void
Unfreeze void
UpdateQuickAccessCombo void

Public Methods

Method Description
CreateQuickAccessItem ( ) : FrameworkElement

Gets control which represents shortcut item. This item MUST be syncronized 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

Protected Methods

Method Description
OnDropDownClosed ( EventArgs e ) : void

Reports when a combo box's popup closes.

OnDropDownOpened ( EventArgs e ) : void

Reports when a combo box's popup opens.

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

Invoked when a E:System.Windows.Input.Keyboard.KeyDown attached routed event occurs.

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

Invoked when a E:System.Windows.Input.Keyboard.PreviewKeyDown attached routed event occurs.

Private Methods

Method Description
CoerceSelectedItem ( DependencyObject d, object basevalue ) : object
ComboBox ( ) : System
CustomPopupPlacementMethod ( Size popupsize, Size targetsize, Point offset ) : System.Windows.Controls.Primitives.CustomPopupPlacement[]

Implements custom placement for ribbon popup

Freeze ( ) : void
OnContentBorderPreviewMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnFirstLoaded ( object sender, RoutedEventArgs e ) : void
OnFocusedElementLostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnIconChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnQuickAccessMenuClosed ( object sender, EventArgs e ) : void
OnQuickAccessOpened ( object sender, EventArgs e ) : void
OnQuickAccessTextBoxGetFocus ( object sender, RoutedEventArgs e ) : void
OnQuickAccessTextBoxLostFocus ( 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
OnSelectionItemChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetDragHeight ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
Unfreeze ( ) : void
UpdateQuickAccessCombo ( ) : void

Method Details

CreateQuickAccessItem() public method

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

OnApplyTemplate() public method

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

OnDropDownClosed() protected method

Reports when a combo box's popup closes.
protected OnDropDownClosed ( EventArgs e ) : void
e System.EventArgs The event data for the event.
return void

OnDropDownOpened() protected method

Reports when a combo box's popup opens.
protected OnDropDownOpened ( EventArgs e ) : void
e System.EventArgs The event data for the event.
return void

OnKeyDown() protected method

Invoked when a E:System.Windows.Input.Keyboard.KeyDown attached routed event occurs.
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs Event data.
return void

OnKeyTipBack() public method

Handles back navigation with KeyTips
public OnKeyTipBack ( ) : void
return void

OnKeyTipPressed() public method

Handles key tip pressed
public OnKeyTipPressed ( ) : void
return void

OnPreviewKeyDown() protected method

Invoked when a E:System.Windows.Input.Keyboard.PreviewKeyDown attached routed event occurs.
protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs Event data.
return 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
return System.Windows.DependencyProperty

DropDownHeightProperty public_oe static_oe property

/Using a DependencyProperty as the backing store for DropDownHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows DropDownHeightProperty
return System.Windows.DependencyProperty

GroupByProperty public_oe static_oe property

Using a DependencyProperty as the backing store for GroupBy. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GroupByProperty
return 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
return 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
return System.Windows.DependencyProperty

InputWidthProperty public_oe static_oe property

Using a DependencyProperty as the backing store for InputWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows InputWidthProperty
return System.Windows.DependencyProperty

ItemHeightProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemHeightProperty
return System.Windows.DependencyProperty

MenuProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Menu. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MenuProperty
return 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
return System.Windows.DependencyProperty

ShowPopupOnTopProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ShowPopupOnTop. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ShowPopupOnTopProperty
return System.Windows.DependencyProperty