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

Inheritance: System.Windows.Controls.Panel, IProvideStarLayoutInfoBase, IContainsStarLayoutManager, IScrollInfo
Datei anzeigen Open project: kasicass/kasicass Class Usage Examples

Private Properties

Property Type Description
AutoPassMeasureOverride System.Windows.Size
CoerceOffset double
ComputeScrollOffsetWithMinimalScroll double
EnsureScrollData void
OnRibbonGalleryCategoriesPanelLoaded void
OnRibbonGalleryCategoriesPanelUnloaded void
OnScrollChange void
RealMeasureOverride System.Windows.Size
ResetScrolling void
VerifyScrollingData void

Public Methods

Method Description
LineDown ( ) : void

Scroll content by one line to the bottom.

LineLeft ( ) : void

Scroll content by one line to the left.

LineRight ( ) : void

Scroll content by one line to the right.

LineUp ( ) : void

Scroll content by one line to the top.

MakeVisible ( Visual visual, Rect rectangle ) : Rect

RibbonGalleryCategoriesPanel implementation of IScrollInfo.MakeVisible.

MouseWheelDown ( ) : void

Scroll content by SystemParameters.WheelScrollLines lines to the bottom.

MouseWheelLeft ( ) : void

Scroll content by SystemParameters.WheelScrollLines lines to the left.

MouseWheelRight ( ) : void

Scroll content by SystemParameters.WheelScrollLines lines to the right.

MouseWheelUp ( ) : void

Scroll content by SystemParameters.WheelScrollLines lines to the top.

OnInitializeLayout ( ) : void
PageDown ( ) : void

Scroll content by one page to the bottom.

PageLeft ( ) : void

Scroll content by one page to the left.

PageRight ( ) : void

Scroll content by one page to the right.

PageUp ( ) : void

Scroll content by one page to the top.

RibbonGalleryCategoriesPanel ( ) : System
SetHorizontalOffset ( double offset ) : void

Set the HorizontalOffset to the passed value.

SetVerticalOffset ( double offset ) : void

Set the VerticalOffset to the passed value.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Content arrangement.

MeasureOverride ( Size availableSize ) : Size

In normal(Star) pass this panel behaves like a StackPanel but during Auto(non Star) pass It returns minimum Width and Height required to represent the children.

Private Methods

Method Description
AutoPassMeasureOverride ( ) : Size
CoerceOffset ( double offset, double extent, double viewport ) : double
ComputeScrollOffsetWithMinimalScroll ( double topView, double bottomView, double topChild, double bottomChild ) : double
EnsureScrollData ( ) : void
OnRibbonGalleryCategoriesPanelLoaded ( object sender, RoutedEventArgs e ) : void
OnRibbonGalleryCategoriesPanelUnloaded ( object sender, RoutedEventArgs e ) : void
OnScrollChange ( ) : void
RealMeasureOverride ( Size constraint ) : Size

General RibbonGalleryCategoriesPanel layout behavior is to grow unbounded in the "vertical" direction (Size To Content). Children in this dimension are encouraged to be as large as they like. In the other dimension, RibbonGalleryCategoriesPanel will assume the maximum size of its children.

When scrolling, RibbonGalleryCategoriesPanel will not grow in layout size but effectively add the children on a z-plane which will probably be clipped by some parent (typically a ScrollContentPresenter) to Stack's size.

ResetScrolling ( RibbonGalleryCategoriesPanel element ) : void
VerifyScrollingData ( Size viewport, Size extent, System.Windows.Vector offset ) : void

Method Details

ArrangeOverride() protected method

Content arrangement.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

LineDown() public method

Scroll content by one line to the bottom.
public LineDown ( ) : void
return void

LineLeft() public method

Scroll content by one line to the left.
public LineLeft ( ) : void
return void

LineRight() public method

Scroll content by one line to the right.
public LineRight ( ) : void
return void

LineUp() public method

Scroll content by one line to the top.
public LineUp ( ) : void
return void

MakeVisible() public method

RibbonGalleryCategoriesPanel implementation of IScrollInfo.MakeVisible.
public MakeVisible ( Visual visual, Rect rectangle ) : Rect
visual Visual The Visual that should become visible
rectangle System.Windows.Rect A rectangle representing in the visual's coordinate space to make visible.
return System.Windows.Rect

MeasureOverride() protected method

In normal(Star) pass this panel behaves like a StackPanel but during Auto(non Star) pass It returns minimum Width and Height required to represent the children.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

MouseWheelDown() public method

Scroll content by SystemParameters.WheelScrollLines lines to the bottom.
public MouseWheelDown ( ) : void
return void

MouseWheelLeft() public method

Scroll content by SystemParameters.WheelScrollLines lines to the left.
public MouseWheelLeft ( ) : void
return void

MouseWheelRight() public method

Scroll content by SystemParameters.WheelScrollLines lines to the right.
public MouseWheelRight ( ) : void
return void

MouseWheelUp() public method

Scroll content by SystemParameters.WheelScrollLines lines to the top.
public MouseWheelUp ( ) : void
return void

OnInitializeLayout() public method

public OnInitializeLayout ( ) : void
return void

PageDown() public method

Scroll content by one page to the bottom.
public PageDown ( ) : void
return void

PageLeft() public method

Scroll content by one page to the left.
public PageLeft ( ) : void
return void

PageRight() public method

Scroll content by one page to the right.
public PageRight ( ) : void
return void

PageUp() public method

Scroll content by one page to the top.
public PageUp ( ) : void
return void

RibbonGalleryCategoriesPanel() public method

public RibbonGalleryCategoriesPanel ( ) : System
return System

SetHorizontalOffset() public method

Set the HorizontalOffset to the passed value.
public SetHorizontalOffset ( double offset ) : void
offset double
return void

SetVerticalOffset() public method

Set the VerticalOffset to the passed value.
public SetVerticalOffset ( double offset ) : void
offset double
return void