C# Class Fluent.RibbonToolBar

Inheritance: RibbonControl, IRibbonSizeChangedSink
Mostrar archivo Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
SeparatorStyleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CustomLayout System.Windows.Size
GetControl System.Windows.FrameworkElement
GetControlGroup Fluent.RibbonToolBarControlGroup
GetCurrentLayoutDefinition RibbonToolBarLayoutDefinition
GetRowHeight double
OnChildrenCollectionChanged void
OnCoerceStyle object
OnLayoutDefinitionsChanged void
OnSeparatorStyleChanged void
RibbonToolBar System
WrapPanelLayuot System.Windows.Size

Public Methods

Method Description
CreateQuickAccessItem ( ) : FrameworkElement

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.

OnSizePropertyChanged ( RibbonControlSize previous, RibbonControlSize current ) : void

Handles size property changing

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.

GetVisualChild ( int index ) : Visual

Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns a child at the specified index from a collection of child elements.

MeasureOverride ( Size availableSize ) : Size

Measures all of the RibbonGroupBox, and resize them appropriately to fit within the available room

Private Methods

Method Description
CustomLayout ( RibbonToolBarLayoutDefinition layoutDefinition, Size availableSize, bool measure, bool addchildren ) : Size

Layout logic for the given layout definition

GetControl ( RibbonToolBarControlDefinition controlDefinition ) : FrameworkElement
GetControlGroup ( Fluent.RibbonToolBarControlGroupDefinition controlGroupDefinition ) : Fluent.RibbonToolBarControlGroup
GetCurrentLayoutDefinition ( ) : RibbonToolBarLayoutDefinition

Gets current used layout definition (or null if no present definitions)

GetRowHeight ( RibbonToolBarLayoutDefinition layoutDefinition ) : double
OnChildrenCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnLayoutDefinitionsChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnSeparatorStyleChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RibbonToolBar ( ) : System
WrapPanelLayuot ( Size availableSize, bool measure ) : Size

Unified method for wrap panel logic

Method Details

ArrangeOverride() protected method

When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size The final area within the parent that this /// element should use to arrange itself and its children.
return System.Windows.Size

CreateQuickAccessItem() public method

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
return System.Windows.FrameworkElement

GetVisualChild() protected method

Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns a child at the specified index from a collection of child elements.
protected GetVisualChild ( int index ) : Visual
index int The zero-based index of the requested /// child element in the collection
return Visual

MeasureOverride() protected method

Measures all of the RibbonGroupBox, and resize them appropriately to fit within the available room
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size The available size that /// this element can give to child elements.
return System.Windows.Size

OnSizePropertyChanged() public method

Handles size property changing
public OnSizePropertyChanged ( RibbonControlSize previous, RibbonControlSize current ) : void
previous RibbonControlSize Previous value
current RibbonControlSize Current value
return void

Property Details

SeparatorStyleProperty public_oe static_oe property

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