InterfaceIToggleButton
Represents interface for the Xaml ToggleButton control wrappers.
Definition
Namespace:ArtOfTest.WebAii.Controls.Xaml
Assembly:ArtOfTest.WebAii.dll
Syntax:
public interface IToggleButton : IFrameworkElement, ITargetElement
Derived Classes:
Inherited Members
Properties
CheckIcon
Get the check icon element.
IsChecked
Get/set whether the ToggleButton is checked.
IsThreeState
Get/set whether the ToggleButton is in three state.
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
void Check(bool simulateRealUser)
Parameters
simulateRealUser
Whether to simulate a real user click.
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
void UnCheck(bool simulateRealUser)
Parameters
simulateRealUser
Whether to simulate a real user click.