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

RibbonGalleryItem inherits from ContentControl is an Item inside RibbonGalleryCategory which itself is an Item of RibbonGallery itself.
Inheritance: System.Windows.Controls.ContentControl, ISyncKeyTipAndContent
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
CheckedBackgroundProperty System.Windows.DependencyProperty
CheckedBorderBrushProperty System.Windows.DependencyProperty
IsHighlightedProperty System.Windows.DependencyProperty
IsPressedProperty System.Windows.DependencyProperty
IsSelectedProperty System.Windows.DependencyProperty
KeyTipProperty System.Windows.DependencyProperty
MouseOverBackgroundProperty System.Windows.DependencyProperty
MouseOverBorderBrushProperty System.Windows.DependencyProperty
PressedBackgroundProperty System.Windows.DependencyProperty
PressedBorderBrushProperty System.Windows.DependencyProperty
RibbonProperty System.Windows.DependencyProperty
SelectedEvent System.Windows.RoutedEvent
ToolTipDescriptionProperty System.Windows.DependencyProperty
ToolTipFooterDescriptionProperty System.Windows.DependencyProperty
ToolTipFooterImageSourceProperty System.Windows.DependencyProperty
ToolTipFooterTitleProperty System.Windows.DependencyProperty
ToolTipImageSourceProperty System.Windows.DependencyProperty
ToolTipTitleProperty System.Windows.DependencyProperty
UnselectedEvent System.Windows.RoutedEvent

Private Properties

Property Type Description
CoerceContent object
CoerceKeyTip object
OnActivatingKeyTipThunk void
OnContentChanged void
OnIsHighlightedChanged void
OnIsSelectedChanged void
OnKeyTipAccessedThunk void
OnKeyTipChanged void
RibbonGalleryItem System
SetSelectedOnInput void
SyncKeyTipAndContent void

Protected Methods

Method Description
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void

This method is invoked when the IsFocused property changes to true.

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

This is the method that responds to the KeyDown event.

OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void

This is the method that responds to the KeyUp event.

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

An event announcing that the keyboard is no longer focused

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

An event reporting the mouse left this element.

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

This is the method that responds to the MouseButtonEvent event.

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

This is the method that responds to the MouseButtonEvent event.

OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void

This is the method that responds to the MouseEvent event.

OnSelected ( RoutedEventArgs e ) : void

Called when IsSelected becomes true. Default implementation fires the Selected event.

OnUnselected ( RoutedEventArgs e ) : void

Called when IsSelected becomes false. Default implementation fires the Unselected event.

Private Methods

Method Description
CoerceContent ( DependencyObject d, object baseValue ) : object
CoerceKeyTip ( DependencyObject d, object baseValue ) : object
OnActivatingKeyTipThunk ( object sender, ActivatingKeyTipEventArgs e ) : void
OnContentChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsHighlightedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsSelectedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnKeyTipAccessedThunk ( object sender, KeyTipAccessedEventArgs e ) : void
OnKeyTipChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RibbonGalleryItem ( ) : System

Initializes static members of the RibbonGalleryItem class.

SetSelectedOnInput ( ) : void
SyncKeyTipAndContent ( ) : void

Method Details

OnActivatingKeyTip() protected method

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e ActivatingKeyTipEventArgs
return void

OnCreateAutomationPeer() protected method

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

OnGotKeyboardFocus() protected method

This method is invoked when the IsFocused property changes to true.
protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs Event arguments.
return void

OnKeyDown() protected method

This is the method that responds to the KeyDown event.
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs Event arguments
return void

OnKeyTipAccessed() protected method

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e KeyTipAccessedEventArgs
return void

OnKeyUp() protected method

This is the method that responds to the KeyUp event.
protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs Event arguments
return void

OnLostKeyboardFocus() protected method

An event announcing that the keyboard is no longer focused
protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs Event arguments
return void

OnMouseLeave() protected method

An event reporting the mouse left this element.
protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs Event arguments
return void

OnMouseLeftButtonDown() protected method

This is the method that responds to the MouseButtonEvent event.
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs Event arguments
return void

OnMouseLeftButtonUp() protected method

This is the method that responds to the MouseButtonEvent event.
protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs Event arguments
return void

OnMouseMove() protected method

This is the method that responds to the MouseEvent event.
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs Event arguments
return void

OnSelected() protected method

Called when IsSelected becomes true. Default implementation fires the Selected event.
protected OnSelected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs Event arguments.
return void

OnUnselected() protected method

Called when IsSelected becomes false. Default implementation fires the Unselected event.
protected OnUnselected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs Event arguments.
return void

Property Details

CheckedBackgroundProperty public static property

DependencyProperty for CheckedBackground property.
public static DependencyProperty,System.Windows CheckedBackgroundProperty
return System.Windows.DependencyProperty

CheckedBorderBrushProperty public static property

DependencyProperty for CheckedBorderBrush property.
public static DependencyProperty,System.Windows CheckedBorderBrushProperty
return System.Windows.DependencyProperty

IsHighlightedProperty public static property

The DependencyProperty for the IsHighlighted property. Flags: None Default Value: false
public static DependencyProperty,System.Windows IsHighlightedProperty
return System.Windows.DependencyProperty

IsPressedProperty public static property

The DependencyProperty for the IsPressed property. Flags: None Default Value: false
public static DependencyProperty,System.Windows IsPressedProperty
return System.Windows.DependencyProperty

IsSelectedProperty public static property

Indicates whether this RibbonGalleryItem is selected.
public static DependencyProperty,System.Windows IsSelectedProperty
return System.Windows.DependencyProperty

KeyTipProperty public static property

DependencyProperty for KeyTip property.
public static DependencyProperty,System.Windows KeyTipProperty
return System.Windows.DependencyProperty

MouseOverBackgroundProperty public static property

DependencyProperty for MouseOverBackground property.
public static DependencyProperty,System.Windows MouseOverBackgroundProperty
return System.Windows.DependencyProperty

MouseOverBorderBrushProperty public static property

DependencyProperty for MouseOverBorderBrush property.
public static DependencyProperty,System.Windows MouseOverBorderBrushProperty
return System.Windows.DependencyProperty

PressedBackgroundProperty public static property

DependencyProperty for PressedBackground property.
public static DependencyProperty,System.Windows PressedBackgroundProperty
return System.Windows.DependencyProperty

PressedBorderBrushProperty public static property

DependencyProperty for PressedBorderBrush property.
public static DependencyProperty,System.Windows PressedBorderBrushProperty
return System.Windows.DependencyProperty

RibbonProperty public static property

DependencyProperty for Ribbon property.
public static DependencyProperty,System.Windows RibbonProperty
return System.Windows.DependencyProperty

SelectedEvent public static property

Raised when the item's IsSelected property becomes true.
public static RoutedEvent,System.Windows SelectedEvent
return System.Windows.RoutedEvent

ToolTipDescriptionProperty public static property

DependencyProperty for ToolTipDescription property.
public static DependencyProperty,System.Windows ToolTipDescriptionProperty
return System.Windows.DependencyProperty

ToolTipFooterDescriptionProperty public static property

DependencyProperty for ToolTipFooterDescription property.
public static DependencyProperty,System.Windows ToolTipFooterDescriptionProperty
return System.Windows.DependencyProperty

ToolTipFooterImageSourceProperty public static property

DependencyProperty for ToolTipFooterImageSource property.
public static DependencyProperty,System.Windows ToolTipFooterImageSourceProperty
return System.Windows.DependencyProperty

ToolTipFooterTitleProperty public static property

DependencyProperty for ToolTipFooterTitle property.
public static DependencyProperty,System.Windows ToolTipFooterTitleProperty
return System.Windows.DependencyProperty

ToolTipImageSourceProperty public static property

DependencyProperty for ToolTipImageSource property.
public static DependencyProperty,System.Windows ToolTipImageSourceProperty
return System.Windows.DependencyProperty

ToolTipTitleProperty public static property

DependencyProperty for ToolTipTitle property.
public static DependencyProperty,System.Windows ToolTipTitleProperty
return System.Windows.DependencyProperty

UnselectedEvent public static property

Raised when the item's IsSelected property becomes false.
public static RoutedEvent,System.Windows UnselectedEvent
return System.Windows.RoutedEvent