Interface
IToggleButton

Represents interface for the Xaml ToggleButton control wrappers.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface IToggleButton : IFrameworkElement, ITargetElement

Derived Classes: AccordionButtonCheckBoxRadioButtonToggleButtonCheckBoxRadioButtonToggleButtonPickerToggleButtonRadRadioButtonRadRibbonRadioButtonRadRibbonToggleButtonRadToggleButtonPickerToggleButtonRadRadioButtonRadRibbonRadioButtonRadRibbonToggleButtonRadToggleButtonRadToggleSwitchButton

Inherited Members IFrameworkElement.CastAs<T>()IFrameworkElement.Parent<T>()IFrameworkElement.SetProxy(bool)IFrameworkElement.SetUid(string)IFrameworkElement.SetFindInfo(VisualFindInfo)IFrameworkElement.SetXamlTag(string)IFrameworkElement.AssignReference(AutomationReference)IFrameworkElement.SetFocus()IFrameworkElement.GetAutomationProperty(string)IFrameworkElement.GetProperty<T>(string)IFrameworkElement.GetPropertyTypeSafe(string)IFrameworkElement.SetProperty(string, object)IFrameworkElement.ScrollToVisible()IFrameworkElement.UserIFrameworkElement.FindIFrameworkElement.WaitIFrameworkElement.NameIFrameworkElement.AbsoluteSiblingTagIndexIFrameworkElement.ActualWidthIFrameworkElement.ActualHeightIFrameworkElement.TextIFrameworkElement.ToolTipTextIFrameworkElement.TextBlockContentIFrameworkElement.TextLiteralContentIFrameworkElement.ComputedVisibilityIFrameworkElement.UidITargetElement.Match(IFindExpression)ITargetElement.SetDepth(int)ITargetElement.AddChildNode(ITargetElement)ITargetElement.SetClosingTag(ITargetElement)ITargetElement.GetChildren()ITargetElement.GetParent()ITargetElement.GetHostParent()ITargetElement.SetParent(ITargetElement)ITargetElement.Refresh()ITargetElement.GetUniqueHashCode()ITargetElement.GetRectangle()ITargetElement.Capture()ITargetElement.CaptureImage()ITargetElement.GetStringPresentation()ITargetElement.TechnologyTypeITargetElement.DepthITargetElement.IsTestRegionITargetElement.ParsedElementITargetElement.Host

Properties

CheckIcon

Get the check icon element.

Declaration

cs-api-definition
FrameworkElement CheckIcon { get; }

Property Value

FrameworkElement

IsChecked

Get/set whether the ToggleButton is checked.

Declaration

cs-api-definition
bool? IsChecked { get; set; }

Property Value

bool?

IsThreeState

Get/set whether the ToggleButton is in three state.

Declaration

cs-api-definition
bool IsThreeState { get; set; }

Property Value

bool

Methods

Check(bool)

Checks the toggle button. If simulate real user clicks on the toggle box portion if it exists, otherwise clicks on the center of the button rectangle. If doesn't, simulate real user updates the checked state via an automation property.

Declaration

cs-api-definition
void Check(bool simulateRealUser)

Parameters

simulateRealUser

bool

Whether to simulate a real user click.

Toggle()

Toggle the state of the button.

Declaration

cs-api-definition
void Toggle()

UnCheck(bool)

Unchecks the toggle button. If simulate real user clicks on the toggle box portion if it exists, otherwise clicks on the center of the button rectangle. If doesn't, simulate real user updates the checked state via an automation property.

Declaration

cs-api-definition
void UnCheck(bool simulateRealUser)

Parameters

simulateRealUser

bool

Whether to simulate a real user click.