C# Class Microsoft.Windows.Controls.Ribbon.Primitives.RibbonTabHeadersPanel

The items panel for RibbonTabHeaderItemsControl
Inheritance: System.Windows.Controls.Panel, IScrollInfo
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
RibbonProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ArrangeContextualTabHeaders void
ArrangeRegularTabHeaders void
CalculateMaxPadding double
CalculateMaxTabHeaderWidth double
CoerceOffset double
ComputeScrollOffsetWithMinimalScroll double
FinalMeasure System.Windows.Size
InitialMeasure System.Windows.Size
NotifyDesiredWidthChanged void
OnNotifyRibbonBorderBrushChanged void
OnScrollChange void
UpdateToolTips void
ValidateInputOffset double
VerifyScrollData void

Public Methods

Method Description
LineDown ( ) : void
LineLeft ( ) : void
LineRight ( ) : void
LineUp ( ) : void
MakeVisible ( Visual visual, Rect rectangle ) : Rect
MouseWheelDown ( ) : void
MouseWheelLeft ( ) : void
MouseWheelRight ( ) : void
MouseWheelUp ( ) : void
PageDown ( ) : void
PageLeft ( ) : void
PageRight ( ) : void
PageUp ( ) : void
SetHorizontalOffset ( double offset ) : void
SetVerticalOffset ( double offset ) : void

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Arrange

MeasureOverride ( Size availableSize ) : Size

Measure

OnIsItemsHostChanged ( bool oldIsItemsHost, bool newIsItemsHost ) : void

This method is invoked when the IsItemsHost property changes.

OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Draw the separators if needed.

Private Methods

Method Description
ArrangeContextualTabHeaders ( Size arrangeSize, Ribbon ribbon, Dictionary contextualTabHeaders, int &displayIndex, double &childX ) : void

Arranges contextual tab headers

ArrangeRegularTabHeaders ( Size arrangeSize, Ribbon ribbon, Dictionary contextualTabHeaders, int &displayIndex, double &childX ) : void

Arranges regular tab headers and builds a map of RibbonTab.ContextualTabGroupHeader to list of RibbonTabHeaders

CalculateMaxPadding ( double spaceAvailable ) : double

This algorithm calculates the extra Padding that can be assigned to a contextual tab.

CalculateMaxTabHeaderWidth ( double clipWidth, bool forContextualTabs ) : double
CoerceOffset ( double offset, double extent, double viewport ) : double
ComputeScrollOffsetWithMinimalScroll ( double topView, double bottomView, double topChild, double bottomChild ) : double
FinalMeasure ( Size constraint, double reducePaddingContextualTabHeader, double reducePaddingRegularTabHeader, double maxContextualTabHeaderWidth, double maxRegularTabHeaderWidth ) : Size

Measures all the children with final constraints

InitialMeasure ( Size constraint, double &totalDefaultPaddingAllTabHeaders, double &totalDefaultPaddingRegularTabHeaders, double &totalDesiredWidthRegularTabHeaders, int &countRegularTabs, int &countVisibleTabs ) : Size

Measures all the children with original constraints.

NotifyDesiredWidthChanged ( ) : void

Called whenever RibbonTabHeaders are measured Sums up DesiredSize.Width of each RibbonTabHeader belonging to a ContextualTabGroup and stores it as ContextualTabGroup.TabsDesiredWidth.

OnNotifyRibbonBorderBrushChanged ( ) : void
OnScrollChange ( ) : void
UpdateToolTips ( bool showRegularTabHeaderToolTips, bool showContextualTabHeaderToolTips ) : void

Set show tooltips depending on whether the tab header is clipped or not.

ValidateInputOffset ( double offset, string parameterName ) : double
VerifyScrollData ( double viewportWidth, double extentWidth ) : void

Method Details

ArrangeOverride() protected method

Arrange
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

LineDown() public method

public LineDown ( ) : void
return void

LineLeft() public method

public LineLeft ( ) : void
return void

LineRight() public method

public LineRight ( ) : void
return void

LineUp() public method

public LineUp ( ) : void
return void

MakeVisible() public method

public MakeVisible ( Visual visual, Rect rectangle ) : Rect
visual Visual
rectangle System.Windows.Rect
return System.Windows.Rect

MeasureOverride() protected method

Measure
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

MouseWheelDown() public method

public MouseWheelDown ( ) : void
return void

MouseWheelLeft() public method

public MouseWheelLeft ( ) : void
return void

MouseWheelRight() public method

public MouseWheelRight ( ) : void
return void

MouseWheelUp() public method

public MouseWheelUp ( ) : void
return void

OnIsItemsHostChanged() protected method

This method is invoked when the IsItemsHost property changes.
protected OnIsItemsHostChanged ( bool oldIsItemsHost, bool newIsItemsHost ) : void
oldIsItemsHost bool The old value of the IsItemsHost property.
newIsItemsHost bool The new value of the IsItemsHost property.
return void

OnRender() protected method

Draw the separators if needed.
protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

PageDown() public method

public PageDown ( ) : void
return void

PageLeft() public method

public PageLeft ( ) : void
return void

PageRight() public method

public PageRight ( ) : void
return void

PageUp() public method

public PageUp ( ) : void
return void

SetHorizontalOffset() public method

public SetHorizontalOffset ( double offset ) : void
offset double
return void

SetVerticalOffset() public method

public SetVerticalOffset ( double offset ) : void
offset double
return void

Property Details

RibbonProperty public static property

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