C# Class Fluent.RibbonTabControl

Inheritance: System.Windows.Controls.Primitives.Selector, IDropDownControl
Show file Open project: Gainedge/BetterExplorer

Public Properties

Property Type Description
ContentGapHeightProperty System.Windows.DependencyProperty
HighlightSelectedItemProperty System.Windows.DependencyProperty
IsDropDownOpenProperty System.Windows.DependencyProperty
IsMinimizedProperty System.Windows.DependencyProperty
MenuProperty System.Windows.DependencyProperty
SelectedContentProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CoerceIsDropDownOpen object
CustomPopupPlacementMethod System.Windows.Controls.Primitives.CustomPopupPlacement[]
FindNextTabItem RibbonTabItem
GetSelectedTabItem RibbonTabItem
IsRibbonAncestorOf bool
OnCoerceStyle object
OnGeneratorStatusChanged void
OnIsDropDownOpenChanged void
OnLoaded void
OnMinimizedChanged void
OnRibbonTabPopupClosing void
OnRibbonTabPopupOpening void
OnToolbarItemsCollectionChanged void
ProcessMouseWheel void
RibbonTabControl System
UpdateSelectedContent void

Public Methods

Method Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().

RaiseRequestBackstageClose ( ) : void

Raises an event causing the Backstage-View to be closed

Protected Methods

Method Description
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.

OnInitialized ( EventArgs e ) : void

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows. FrameworkElement.IsInitialized is set to true internally.

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

Updates the current selection when an item in the System.Windows.Controls.Primitives.Selector has changed

OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void

Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel  attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void

Called when the selection changes.

Private Methods

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

Implements custom placement for ribbon popup

FindNextTabItem ( int startIndex, int direction ) : RibbonTabItem
GetSelectedTabItem ( ) : RibbonTabItem
IsRibbonAncestorOf ( DependencyObject element ) : bool
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnGeneratorStatusChanged ( object sender, EventArgs e ) : void
OnIsDropDownOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnMinimizedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnRibbonTabPopupClosing ( ) : void
OnRibbonTabPopupOpening ( ) : void
OnToolbarItemsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
ProcessMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
RibbonTabControl ( ) : System
UpdateSelectedContent ( ) : void

Method Details

GetContainerForItemOverride() protected method

Creates or identifies the element that is used to display the given item.
protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

IsItemItsOwnContainerOverride() protected method

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.
return bool

OnApplyTemplate() public method

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

OnInitialized() protected method

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows. FrameworkElement.IsInitialized is set to true internally.
protected OnInitialized ( EventArgs e ) : void
e System.EventArgs The System.Windows.RoutedEventArgs that contains the event data.
return void

OnItemsChanged() protected method

Updates the current selection when an item in the System.Windows.Controls.Primitives.Selector has changed
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs The event data.
return void

OnPreviewMouseWheel() protected method

Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel  attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
e System.Windows.Input.MouseWheelEventArgs The System.Windows.Input.MouseWheelEventArgs that contains the event data.
return void

OnSelectionChanged() protected method

Called when the selection changes.
protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs The event data.
return void

RaiseRequestBackstageClose() public method

Raises an event causing the Backstage-View to be closed
public RaiseRequestBackstageClose ( ) : void
return void

Property Details

ContentGapHeightProperty public static property

DependencyProperty for ContentGapHeight
public static DependencyProperty,System.Windows ContentGapHeightProperty
return System.Windows.DependencyProperty

HighlightSelectedItemProperty public static property

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

IsDropDownOpenProperty public static property

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

IsMinimizedProperty public static property

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

MenuProperty public static property

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

SelectedContentProperty public static property

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