ClassToggleButton
Wraps a Silverlight ToggleButton element.
Definition
Namespace:ArtOfTest.WebAii.Silverlight.UI
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class ToggleButton : ButtonBase, IAutomationPeer, IPeerConverter, IButtonBase, IContentControl, IControl, IToggleButton, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlContentControlButtonBaseToggleButton
Derived Classes:
Implements:
Inherited Members
Constructors
ToggleButton()
Declaration
public ToggleButton()
Fields
IsCheckedProperty
Declaration
public static AutomationProperty IsCheckedProperty
Field Value
IsThreeStateProperty
Declaration
public static AutomationProperty IsThreeStateProperty
Field Value
Properties
CheckIcon
Get the ToggleButton check icon element. Override for custom control template.
Declaration
public virtual FrameworkElement CheckIcon { get; }
Property Value
Implements
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
public void Check(bool simulateRealUser)
Parameters
simulateRealUser
Whether to simulate a real user click.
Implements
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
Toggle()
Changes the state of the toggle button. Clicks on the toggle box portion if it exists, otherwise clicks on the center of the button rectangle.
Declaration
public void Toggle()
Implements
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
public void UnCheck(bool simulateRealUser)
Parameters
simulateRealUser
Whether to simulate a real user click.
Implements