In This Article

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 is false.

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.

public event RoutedEventHandler IsCheckedChanged

Event Type

RoutedEventHandler

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