BarSplitToggleButton Class
Represents a split toggle button control, for use within a ribbon or toolbar.
public class BarSplitToggleButton : BarSplitButton, IPopupAnchor
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl MenuBase Menu BarPopupButtonBase BarPopupButton BarSplitButton object
- Implements:
- IPopupAnchor
Constructors
BarSplitToggleButton()
Initializes a new instance of the BarSplitToggleButton class.
public BarSplitToggleButton()
Properties
IsChecked
Gets or sets whether the control is checked.
public bool IsChecked { get; set; }
Property Value
- bool:
true
if the control is checked; otherwise,false
. The default value isfalse
.
Methods
OnClick(RoutedEventArgs)
Occurs when the button is clicked in an area outside of the popup indicator area.
protected override void OnClick(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | RoutedEventArgs | The RoutedEventArgs containing data related to this event. |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnCreateAutomationPeer()
Provides an appropriate MenuAutomationPeer implementation for this control, as part of the WPF automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
OnIsCheckedChanged(RoutedEventArgs)
Occurs when the checked state changes.
protected virtual void OnIsCheckedChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | RoutedEventArgs | The RoutedEventArgs containing data related to this event. |
OnToggle()
Occurs when the button is toggled.
protected virtual void OnToggle()
Events
IsCheckedChanged
Occurs when the IsChecked property is changed.
Fields
IsCheckedChangedEvent
Identifies the IsCheckedChanged routed event. This field is read-only.
public static readonly RoutedEvent IsCheckedChangedEvent
IsCheckedProperty
Identifies the IsChecked dependency property. This field is read-only.
public static readonly DependencyProperty IsCheckedProperty
Inherited Members
- BarSplitButton.ClickEvent
- BarSplitButton.InputGestureTextProperty
- BarSplitButton.IsInputGestureTextVisibleProperty
- BarSplitButton.ExecuteClickFromKeyboard()
- BarSplitButton.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
- BarSplitButton.OnLostMouseCapture(MouseEventArgs)
- BarSplitButton.OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
- BarSplitButton.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
- BarSplitButton.UpdateEnabledProperties()
- BarSplitButton.InputGestureText
- BarSplitButton.IsInputGestureTextVisible
- BarSplitButton.Click
- BarPopupButton.CanCloneToRibbonQuickAccessToolBarProperty
- BarPopupButton.ImageSourceResolvedProperty
- BarPopupButton.KeyProperty
- BarPopupButton.LargeImageSourceProperty
- BarPopupButton.MediumImageSourceProperty
- BarPopupButton.PopupIndicatorMarginProperty
- BarPopupButton.ScreenTipFooterProperty
- BarPopupButton.ScreenTipHeaderProperty
- BarPopupButton.SmallImageSourceProperty
- BarPopupButton.TitleProperty
- BarPopupButton.ToolBarItemCollapseBehaviorProperty
- BarPopupButton.ToolBarItemVariantBehaviorProperty
- BarPopupButton.UserInterfaceDensityProperty
- BarPopupButton.VariantSizeProperty
- BarPopupButton.OnApplyTemplate()
- BarPopupButton.OnToolTipOpening(ToolTipEventArgs)
- BarPopupButton.ToString()
- BarPopupButton.CanCloneToRibbonQuickAccessToolBar
- BarPopupButton.ImageSourceResolved
- BarPopupButton.Key
- BarPopupButton.LargeImageSource
- BarPopupButton.MediumImageSource
- BarPopupButton.PopupIndicatorMargin
- BarPopupButton.ScreenTipFooter
- BarPopupButton.ScreenTipHeader
- BarPopupButton.SmallImageSource
- BarPopupButton.Title
- BarPopupButton.ToolBarItemCollapseBehavior
- BarPopupButton.ToolBarItemVariantBehavior
- BarPopupButton.UserInterfaceDensity
- BarPopupButton.VariantSize
- BarPopupButtonBase.PopupClosedEvent
- BarPopupButtonBase.PopupOpenedEvent
- BarPopupButtonBase.PopupOpeningEvent
- BarPopupButtonBase.CanEffectivelyExecuteProperty
- BarPopupButtonBase.CanEffectivelyOpenPopupProperty
- BarPopupButtonBase.CommandProperty
- BarPopupButtonBase.CommandParameterProperty
- BarPopupButtonBase.CommandTargetProperty
- BarPopupButtonBase.CornerRadiusProperty
- BarPopupButtonBase.HasDropShadowProperty
- BarPopupButtonBase.HasLabelProperty
- BarPopupButtonBase.IsPopupOpenProperty
- BarPopupButtonBase.IsPressedProperty
- BarPopupButtonBase.KeyTipTextProperty
- BarPopupButtonBase.LabelProperty
- BarPopupButtonBase.ParentGalleryMinWidthProperty
- BarPopupButtonBase.PopupAnimationProperty
- BarPopupButtonBase.PopupBackgroundProperty
- BarPopupButtonBase.PopupBorderBrushProperty
- BarPopupButtonBase.PopupBorderThicknessProperty
- BarPopupButtonBase.PopupCornerRadiusProperty
- BarPopupButtonBase.PopupHorizontalOffsetProperty
- BarPopupButtonBase.PopupIndicatorTemplateProperty
- BarPopupButtonBase.PopupOpeningCommandProperty
- BarPopupButtonBase.PopupPaddingProperty
- BarPopupButtonBase.PopupVerticalOffsetProperty
- BarPopupButtonBase.ClearContainerForItemOverride(DependencyObject, object)
- BarPopupButtonBase.GetContainerForItemOverride()
- BarPopupButtonBase.HandleMouseButton(MouseButtonEventArgs)
- BarPopupButtonBase.IsItemItsOwnContainerOverride(object)
- BarPopupButtonBase.IsOverButtonArea(MouseEventArgs)
- BarPopupButtonBase.OnIndicatorAreaMouseDown(MouseButtonEventArgs)
- BarPopupButtonBase.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- BarPopupButtonBase.OnKeyDown(KeyEventArgs)
- BarPopupButtonBase.OnKeyTipInvoked(KeyTipInvokedEventArgs)
- BarPopupButtonBase.OnKeyTipOpening(KeyTipOpeningEventArgs)
- BarPopupButtonBase.OnPopupClosed(RoutedEventArgs)
- BarPopupButtonBase.OnPopupOpened(RoutedEventArgs)
- BarPopupButtonBase.OnPopupOpening(CancelRoutedEventArgs)
- BarPopupButtonBase.OnPreviewKeyUp(KeyEventArgs)
- BarPopupButtonBase.PrepareContainerForItemOverride(DependencyObject, object)
- BarPopupButtonBase.SetFocusForIndicatorAreaMouseDown()
- BarPopupButtonBase.UpdatePopupPlacement()
- BarPopupButtonBase.CanEffectivelyExecute
- BarPopupButtonBase.CanEffectivelyOpenPopup
- BarPopupButtonBase.CanFocusSelectedGalleryItemOnPopupOpen
- BarPopupButtonBase.Command
- BarPopupButtonBase.CommandParameter
- BarPopupButtonBase.CommandTarget
- BarPopupButtonBase.CornerRadius
- BarPopupButtonBase.HasDropShadow
- BarPopupButtonBase.HasLabel
- BarPopupButtonBase.IsEnabledCore
- BarPopupButtonBase.IsPopupOpen
- BarPopupButtonBase.IsPressed
- BarPopupButtonBase.KeyTipText
- BarPopupButtonBase.Label
- BarPopupButtonBase.ParentGalleryMinWidth
- BarPopupButtonBase.PopupAnimation
- BarPopupButtonBase.PopupBackground
- BarPopupButtonBase.PopupBorderBrush
- BarPopupButtonBase.PopupBorderThickness
- BarPopupButtonBase.PopupCornerRadius
- BarPopupButtonBase.PopupHorizontalOffset
- BarPopupButtonBase.PopupIndicatorTemplate
- BarPopupButtonBase.PopupOpeningCommand
- BarPopupButtonBase.PopupPadding
- BarPopupButtonBase.PopupVerticalOffset
- BarPopupButtonBase.PopupClosed
- BarPopupButtonBase.PopupOpened
- BarPopupButtonBase.PopupOpening