C# Class Fluent.SplitButton

Inheritance: DropDownButton
Exibir arquivo Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
CanAddButtonToQuickAccessToolBarProperty System.Windows.DependencyProperty
CheckedEvent System.Windows.RoutedEvent
ClickEvent System.Windows.RoutedEvent
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
CommandTargetProperty System.Windows.DependencyProperty
DropDownToolTipProperty System.Windows.DependencyProperty
GroupNameProperty System.Windows.DependencyProperty
IsButtonEnabledProperty System.Windows.DependencyProperty
IsCheckableProperty System.Windows.DependencyProperty
IsCheckedProperty System.Windows.DependencyProperty
IsDefinitiveProperty System.Windows.DependencyProperty
UncheckedEvent System.Windows.RoutedEvent

Private Properties

Property Type Description
CoerceIsChecked object
OnButtonClick void
OnClick void
OnCoerceStyle object
OnIsCheckedChanged void
OnLoaded void
OnUnloaded void
SplitButton System
SubscribeEvents void
UnSubscribeEvents void

Public Methods

Method Description
CreateQuickAccessItem ( ) : FrameworkElement

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

OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate

Protected Methods

Method Description
BindQuickAccessItem ( FrameworkElement element ) : void

This method must be overridden to bind properties to use in quick access creating

OnKeyDown ( KeyEventArgs e ) : void

Provides class handling for the E:System.Windows.UIElement.KeyDown routed event that occurs when the user presses a key.

OnPreviewMouseLeftButtonDown ( System e ) : void

Invoked when an unhandled System.Windows.UIElement.PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Private Methods

Method Description
CoerceIsChecked ( DependencyObject d, object basevalue ) : object
OnButtonClick ( object sender, RoutedEventArgs e ) : void
OnClick ( object sender, RoutedEventArgs e ) : void
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnIsCheckedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnUnloaded ( object sender, RoutedEventArgs e ) : void
SplitButton ( ) : System
SubscribeEvents ( ) : void
UnSubscribeEvents ( ) : void

Method Details

BindQuickAccessItem() protected method

This method must be overridden to bind properties to use in quick access creating
protected BindQuickAccessItem ( FrameworkElement element ) : void
element System.Windows.FrameworkElement Toolbar item
return void

CreateQuickAccessItem() public method

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

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate
public OnApplyTemplate ( ) : void
return void

OnKeyDown() protected method

Provides class handling for the E:System.Windows.UIElement.KeyDown routed event that occurs when the user presses a key.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs The event data for the event.
return void

OnPreviewMouseLeftButtonDown() protected method

Invoked when an unhandled System.Windows.UIElement.PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseLeftButtonDown ( System e ) : void
e System The System.Windows.Input.MouseButtonEventArgs that contains the event data. /// The event data reports that the left mouse button was pressed.
return void

Property Details

CanAddButtonToQuickAccessToolBarProperty public_oe static_oe property

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

CheckedEvent public_oe static_oe property

Occurs when button is checked
public static RoutedEvent,System.Windows CheckedEvent
return System.Windows.RoutedEvent

ClickEvent public_oe static_oe property

Occurs when user clicks
public static RoutedEvent,System.Windows ClickEvent
return System.Windows.RoutedEvent

CommandParameterProperty public_oe static_oe property

Identifies the CommandParameter dependency property.
public static DependencyProperty,System.Windows CommandParameterProperty
return System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

Identifies the routed Command dependency property.
public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

CommandTargetProperty public_oe static_oe property

Identifies the CommandTarget dependency property.
public static DependencyProperty,System.Windows CommandTargetProperty
return System.Windows.DependencyProperty

DropDownToolTipProperty public_oe static_oe property

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

GroupNameProperty public_oe static_oe property

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

IsButtonEnabledProperty public_oe static_oe property

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

IsCheckableProperty public_oe static_oe property

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

IsCheckedProperty public_oe static_oe property

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

IsDefinitiveProperty public_oe static_oe property

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

UncheckedEvent public_oe static_oe property

Occurs when button is unchecked
public static RoutedEvent,System.Windows UncheckedEvent
return System.Windows.RoutedEvent