C# Class Fluent.QuickAccessToolBar

Inheritance: System.Windows.Controls.Control
Mostra file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
CanQuickAccessLocationChangingProperty System.Windows.DependencyProperty
HasOverflowItemsProperty System.Windows.DependencyProperty
ShowAboveRibbonProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
GetNonOverflowItemsCount int
InvalidateMeasureOfParentRibbon void
OnChildSizeChanged void
OnCoerceStyle object
OnItemsCollectionChanged void
OnQuickAccessItemsCollectionChanged void
OnShowAboveClick void
OnShowBelowClick void
OnToolBarDownClosed void
OnToolBarDownOpened void
QuickAccessToolBar System
UpdateHasOverflowItems void
UpdateKeyTips 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().

Protected Methods

Method Description
MeasureOverride ( Size constraint ) : Size

Called to remeasure a control.

OnRequestCustomize ( object sender, RoutedEventArgs e ) : void

Handles "Customize Quick Access Toolbar" click

Private Methods

Method Description
GetNonOverflowItemsCount ( double width ) : int
InvalidateMeasureOfParentRibbon ( ) : void
OnChildSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnItemsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnQuickAccessItemsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Handles quick access menu items chages

OnShowAboveClick ( object sender, RoutedEventArgs e ) : void

Handles show above menu item click

OnShowBelowClick ( object sender, RoutedEventArgs e ) : void

Handles show below menu item click

OnToolBarDownClosed ( object sender, EventArgs e ) : void
OnToolBarDownOpened ( object sender, EventArgs e ) : void
QuickAccessToolBar ( ) : System
UpdateHasOverflowItems ( ) : void

We have to use this function because setting a DependencyProperty very frequently is quite expensive

UpdateKeyTips ( ) : void

Method Details

MeasureOverride() protected method

Called to remeasure a control.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size The maximum size that the method can return
return System.Windows.Size

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

OnRequestCustomize() protected method

Handles "Customize Quick Access Toolbar" click
protected OnRequestCustomize ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

Property Details

CanQuickAccessLocationChangingProperty public_oe static_oe property

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

HasOverflowItemsProperty public_oe static_oe property

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

ShowAboveRibbonProperty public_oe static_oe property

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