Skip to main content

ToggleSplitButtonAutomationPeer

C# API / Fluence.Wpf.Automation

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Automation
public class ToggleSplitButtonAutomationPeer : FrameworkElementAutomationPeer, IToggleProvider, IExpandCollapseProvider

Exposes ToggleSplitButton to UI Automation with the Toggle pattern (primary half) and the ExpandCollapse pattern (flyout half). The Invoke pattern is deliberately not offered: WinUI exposes only Toggle and ExpandCollapse on its ToggleSplitButton peer, and an Invoke routed through the SplitButton peer would raise Click without toggling, diverging from a real primary-half click.

Remarks: Initializes a new instance.

Parameter owner: The ToggleSplitButton control represented by this automation peer.

Base type: FrameworkElementAutomationPeer (including inherited WPF and .NET members)

C# source

Constructors​

ToggleSplitButtonAutomationPeer​

public ToggleSplitButtonAutomationPeer(ToggleSplitButton owner)

Exposes ToggleSplitButton to UI Automation with the Toggle pattern (primary half) and the ExpandCollapse pattern (flyout half). The Invoke pattern is deliberately not offered: WinUI exposes only Toggle and ExpandCollapse on its ToggleSplitButton peer, and an Invoke routed through the SplitButton peer would raise Click without toggling, diverging from a real primary-half click.

Remarks: Initializes a new instance.

Parameter owner: The ToggleSplitButton control represented by this automation peer.

Properties​

ExpandCollapseState​

public virtual ExpandCollapseState ExpandCollapseState { get; }

Documentation inherited from the FrameworkElementAutomationPeer API.

ToggleState​

public virtual ToggleState ToggleState { get; }

Documentation inherited from the FrameworkElementAutomationPeer API.

Methods​

Collapse​

public virtual void Collapse()

Documentation inherited from the FrameworkElementAutomationPeer API.

Exception System.Windows.Automation.ElementNotEnabledException: The control is disabled.

Expand​

public virtual void Expand()

Documentation inherited from the FrameworkElementAutomationPeer API.

Exception System.Windows.Automation.ElementNotEnabledException: The control is disabled.

GetAutomationControlTypeCore​

protected override AutomationControlType GetAutomationControlTypeCore()

Documentation inherited from the FrameworkElementAutomationPeer API.

GetClassNameCore​

protected override string GetClassNameCore()

Documentation inherited from the FrameworkElementAutomationPeer API.

GetPattern​

public override object GetPattern(PatternInterface patternInterface)

Documentation inherited from the FrameworkElementAutomationPeer API.

Toggle​

public virtual void Toggle()

Documentation inherited from the FrameworkElementAutomationPeer API.

Exception System.Windows.Automation.ElementNotEnabledException: The control is disabled.