C# Class Microsoft.Windows.Controls.Ribbon.RibbonComboBox

A ComboBox which can host a RibbonGallery and RibbonMenuItems. RibbonComboBox displays selected Text only for first occurrence of a RibbonGallery.
Inheritance: RibbonMenuButton
Exibir arquivo Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
IsEditableProperty System.Windows.DependencyProperty
IsReadOnlyProperty System.Windows.DependencyProperty
SelectionBoxItemProperty System.Windows.DependencyProperty
SelectionBoxItemStringFormatProperty System.Windows.DependencyProperty
SelectionBoxItemTemplateProperty System.Windows.DependencyProperty
SelectionBoxItemTemplateSelectorProperty System.Windows.DependencyProperty
SelectionBoxWidthProperty System.Windows.DependencyProperty
ShowKeyboardCuesProperty System.Windows.DependencyProperty
StaysOpenOnEditProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CacheSelectedItem void
CloneLayoutUpdated void
CommitOrCancelChanges void
DiscardCachedSelectedItem void
ExtractString string
HighlightedItemUpdated void
InitializeStringContentTemplate void
OnEditableTextBoxSelectionChanged void
OnEditableTextBoxTextChanged void
OnGalleryGotKeyboardFocus void
OnGalleryHighlightChanged void
OnGalleryItemSelectionChanged void
OnGallerySelectionChanged void
OnIsDropDownOpenChanged void
OnIsEditableChanged void
OnTextChanged void
ReevalutateFocusVisual void
RestoreCachedSelectedItem void
RibbonComboBox System
SelectedItemUpdated void
TextUpdated void
TransferPseudoInheritedProperties void
Update void
UpdateEditableTextBox void
UpdateFirstGallery void
UpdateSelectionBoxItem void
UpdateSelectionProperties void

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
ClearContainerForItemOverride ( DependencyObject element, object item ) : void
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Private Methods

Method Description
CacheSelectedItem ( ) : void
CloneLayoutUpdated ( object sender, EventArgs e ) : void
CommitOrCancelChanges ( bool commitChanges ) : void
DiscardCachedSelectedItem ( ) : void
ExtractString ( DependencyObject d ) : string
HighlightedItemUpdated ( ) : void
InitializeStringContentTemplate ( ) : void
OnEditableTextBoxSelectionChanged ( object sender, RoutedEventArgs e ) : void
OnEditableTextBoxTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
OnGalleryGotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnGalleryHighlightChanged ( object sender, EventArgs e ) : void
OnGalleryItemSelectionChanged ( object sender, RoutedEventArgs e ) : void
OnGallerySelectionChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
OnIsDropDownOpenChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsEditableChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ReevalutateFocusVisual ( ) : void
RestoreCachedSelectedItem ( ) : void
RibbonComboBox ( ) : System

Initializes static members of the RibbonComboBox class. Here we override the default style, a coerce callback, and allow tooltips to be shown for disabled controls.

SelectedItemUpdated ( ) : void
TextUpdated ( string newText, bool textBoxUpdated ) : void
TransferPseudoInheritedProperties ( ) : void
Update ( ) : void
UpdateEditableTextBox ( ) : void
UpdateFirstGallery ( ) : void

Cache Container and item of first occurrence of a RibbonGallery

UpdateSelectionBoxItem ( ) : void

This function updates the selected item in the "selection box". This is called when selection changes or when the combobox switches from editable to non-editable or vice versa. This will also get called in ApplyTemplate in case selection is set prior to the control being measured.

UpdateSelectionProperties ( ) : void

Method Details

ClearContainerForItemOverride() protected method

protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

OnActivatingKeyTip() protected method

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e Microsoft.Windows.Controls.ActivatingKeyTipEventArgs
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnCreateAutomationPeer() protected method

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

OnGotKeyboardFocus() protected method

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnIsKeyboardFocusWithinChanged() protected method

protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnItemsChanged() protected method

protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
return void

OnKeyDown() protected method

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

OnKeyTipAccessed() protected method

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e Microsoft.Windows.Controls.KeyTipAccessedEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnLostKeyboardFocus() protected method

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnPreviewKeyDown() protected method

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

OnPreviewMouseDown() protected method

protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnTextInput() protected method

protected OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
return void

PrepareContainerForItemOverride() protected method

protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

Property Details

IsEditableProperty public_oe static_oe property

DependencyProperty for IsEditable
public static DependencyProperty,System.Windows IsEditableProperty
return System.Windows.DependencyProperty

IsReadOnlyProperty public_oe static_oe property

DependencyProperty for the IsReadOnlyProperty
public static DependencyProperty,System.Windows IsReadOnlyProperty
return System.Windows.DependencyProperty

SelectionBoxItemProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemProperty
public static DependencyProperty,System.Windows SelectionBoxItemProperty
return System.Windows.DependencyProperty

SelectionBoxItemStringFormatProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemProperty
public static DependencyProperty,System.Windows SelectionBoxItemStringFormatProperty
return System.Windows.DependencyProperty

SelectionBoxItemTemplateProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemTemplate Property
public static DependencyProperty,System.Windows SelectionBoxItemTemplateProperty
return System.Windows.DependencyProperty

SelectionBoxItemTemplateSelectorProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemTemplateSelector Property
public static DependencyProperty,System.Windows SelectionBoxItemTemplateSelectorProperty
return System.Windows.DependencyProperty

SelectionBoxWidthProperty public_oe static_oe property

DependencyProperty for TextBoxWidth property.
public static DependencyProperty,System.Windows SelectionBoxWidthProperty
return System.Windows.DependencyProperty

ShowKeyboardCuesProperty public_oe static_oe property

DependencyProperty for ShowKeyboardCues property.
public static DependencyProperty,System.Windows ShowKeyboardCuesProperty
return System.Windows.DependencyProperty

StaysOpenOnEditProperty public_oe static_oe property

DependencyProperty for StaysOpenOnEdit
public static DependencyProperty,System.Windows StaysOpenOnEditProperty
return System.Windows.DependencyProperty

TextProperty public_oe static_oe property

DependencyProperty for Text
public static DependencyProperty,System.Windows TextProperty
return System.Windows.DependencyProperty