Interface IToggleButton
A .NET WPF toggle button object.
public interface IToggleButton
Remarks
To create an instance of this interface, first create an IButton instance for a button with toggle behavior, and then return the IToggleButton using the IButton.ToggleButton property.
Properties
ButtonTestObject
Returns the IButton test object this toggle button was accessed from.
IButton ButtonTestObject { get; }
Property Value
IsChecked
Indicates whether this toggle button is checked.
For Three State toggle button: IsChecked returns true for either a Checked or Indeterminate State.
bool IsChecked { get; }
Property Value
IsThreeState
Indicates whether this toggle button is able to display three check states.
bool IsThreeState { get; }
Property Value
State
Returns the toggle button status.
CheckedState State { get; }
Property Value
- CheckedState
Possible values:
- Checked
- Unchecked
- Indeterminate
Methods
Set(CheckedState)
Sets the value of this toggle button.
void Set(CheckedState state)
Parameters
stateCheckedStateThe value to be assigned to this toggle button. Possible values: CheckedState.