C# Class Fluent.RibbonToolBar

Inheritance: RibbonControl, IRibbonSizeChangedSink
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Свойство Type Description
SeparatorStyleProperty System.Windows.DependencyProperty

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat System.Windows.Size

CreateQuickAccessItem() public méthode

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

GetVisualChild() protected méthode

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
Résultat Visual

MeasureOverride() protected méthode

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.
Résultat System.Windows.Size

OnSizePropertyChanged() public méthode

Handles size property changing
public OnSizePropertyChanged ( RibbonControlSize previous, RibbonControlSize current ) : void
previous RibbonControlSize Previous value
current RibbonControlSize Current value
Résultat 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
Résultat System.Windows.DependencyProperty