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
Afficher le fichier Open project: kasicass/kasicass Class Usage Examples

Méthodes publiques

Свойство 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

Свойство 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

Méthodes publiques

Méthode Description
OnApplyTemplate ( ) : void

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
Résultat void

OnActivatingKeyTip() protected méthode

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e Microsoft.Windows.Controls.ActivatingKeyTipEventArgs
Résultat void

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnCreateAutomationPeer() protected méthode

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
Résultat System.Windows.Automation.Peers.AutomationPeer

OnGotKeyboardFocus() protected méthode

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnIsKeyboardFocusWithinChanged() protected méthode

protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void

OnItemsChanged() protected méthode

protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
Résultat void

OnKeyTipAccessed() protected méthode

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e Microsoft.Windows.Controls.KeyTipAccessedEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
Résultat void

OnLostKeyboardFocus() protected méthode

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnPreviewKeyDown() protected méthode

protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
Résultat void

OnPreviewMouseDown() protected méthode

protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
Résultat void

OnTextInput() protected méthode

protected OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
Résultat void

PrepareContainerForItemOverride() protected méthode

protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
Résultat void

Property Details

IsEditableProperty public_oe static_oe property

DependencyProperty for IsEditable
public static DependencyProperty,System.Windows IsEditableProperty
Résultat System.Windows.DependencyProperty

IsReadOnlyProperty public_oe static_oe property

DependencyProperty for the IsReadOnlyProperty
public static DependencyProperty,System.Windows IsReadOnlyProperty
Résultat System.Windows.DependencyProperty

SelectionBoxItemProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemProperty
public static DependencyProperty,System.Windows SelectionBoxItemProperty
Résultat System.Windows.DependencyProperty

SelectionBoxItemStringFormatProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemProperty
public static DependencyProperty,System.Windows SelectionBoxItemStringFormatProperty
Résultat System.Windows.DependencyProperty

SelectionBoxItemTemplateProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemTemplate Property
public static DependencyProperty,System.Windows SelectionBoxItemTemplateProperty
Résultat System.Windows.DependencyProperty

SelectionBoxItemTemplateSelectorProperty public_oe static_oe property

The DependencyProperty for the SelectionBoxItemTemplateSelector Property
public static DependencyProperty,System.Windows SelectionBoxItemTemplateSelectorProperty
Résultat System.Windows.DependencyProperty

SelectionBoxWidthProperty public_oe static_oe property

DependencyProperty for TextBoxWidth property.
public static DependencyProperty,System.Windows SelectionBoxWidthProperty
Résultat System.Windows.DependencyProperty

ShowKeyboardCuesProperty public_oe static_oe property

DependencyProperty for ShowKeyboardCues property.
public static DependencyProperty,System.Windows ShowKeyboardCuesProperty
Résultat System.Windows.DependencyProperty

StaysOpenOnEditProperty public_oe static_oe property

DependencyProperty for StaysOpenOnEdit
public static DependencyProperty,System.Windows StaysOpenOnEditProperty
Résultat System.Windows.DependencyProperty

TextProperty public_oe static_oe property

DependencyProperty for Text
public static DependencyProperty,System.Windows TextProperty
Résultat System.Windows.DependencyProperty