ControlExtensions.BindIsChecked method (1 of 10)
Binds the checked state to an observable value.
public static CheckBox BindIsChecked(this CheckBox checkBox, ObservableValue<bool> source)| parameter | description |
|---|---|
| checkBox | Target check box. |
| source | Observable source. |
Return Value
Section titled “Return Value”The check box for chaining.
Sets: CheckBox.IsChecked, ToggleBase.IsChecked
See Also
Section titled “See Also”- class CheckBox
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked method (2 of 10)
Section titled “ControlExtensions.BindIsChecked method (2 of 10)”Binds the checked state to an observable nullable value.
public static CheckBox BindIsChecked(this CheckBox checkBox, ObservableValue<bool?> source)| parameter | description |
|---|---|
| checkBox | Target check box. |
| source | Observable source. |
Return Value
Section titled “Return Value”The check box for chaining.
See Also
Section titled “See Also”- class CheckBox
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked method (3 of 10)
Section titled “ControlExtensions.BindIsChecked method (3 of 10)”Binds the checked state to an observable value.
public static RadioButton BindIsChecked(this RadioButton radioButton, ObservableValue<bool> source)| parameter | description |
|---|---|
| radioButton | Target radio button. |
| source | Observable source. |
Return Value
Section titled “Return Value”The radio button for chaining.
See Also
Section titled “See Also”- class RadioButton
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked method (4 of 10)
Section titled “ControlExtensions.BindIsChecked method (4 of 10)”Binds the checked state to an observable value.
public static ToggleButton BindIsChecked(this ToggleButton toggleButton, ObservableValue<bool> source)| parameter | description |
|---|---|
| toggleButton | Target toggle button. |
| source | Observable source. |
Return Value
Section titled “Return Value”The toggle button for chaining.
See Also
Section titled “See Also”- class ToggleButton
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked method (5 of 10)
Section titled “ControlExtensions.BindIsChecked method (5 of 10)”Binds the checked state to an observable value.
public static ToggleSwitch BindIsChecked(this ToggleSwitch toggleSwitch, ObservableValue<bool> source)| parameter | description |
|---|---|
| toggleSwitch | Target toggle switch. |
| source | Observable source. |
Return Value
Section titled “Return Value”The toggle switch for chaining.
See Also
Section titled “See Also”- class ToggleSwitch
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked<TSource> method (6 of 10)
Section titled “ControlExtensions.BindIsChecked<TSource> method (6 of 10)”Binds the checked state to a converted observable value.
public static CheckBox BindIsChecked<TSource>(this CheckBox checkBox, ObservableValue<TSource> source, Func<TSource, bool?> convert, Func<bool?, TSource>? convertBack = null)| parameter | description |
|---|---|
| TSource | Source value type. |
| checkBox | Target check box. |
| source | Observable source. |
| convert | Source-to-checked-state converter. |
| convertBack | Optional checked-state-to-source converter. |
Return Value
Section titled “Return Value”The check box for chaining.
See Also
Section titled “See Also”- class CheckBox
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked<T> method (7 of 10)
Section titled “ControlExtensions.BindIsChecked<T> method (7 of 10)”Binds the checked state to a converted observable value, with a convert-back that can report failure.
public static RadioButton BindIsChecked<T>(this RadioButton radioButton, ObservableValue<T> source, Func<T, bool> convert, Func<bool, (bool success, T value)>? convertBack)| parameter | description |
|---|---|
| T | Source value type. |
| radioButton | Target radio button. |
| source | Observable source. |
| convert | Source-to-checked-state converter. |
| convertBack | Optional checked-state-to-source converter that reports success. |
Return Value
Section titled “Return Value”The radio button for chaining.
See Also
Section titled “See Also”- class RadioButton
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked<T> method (8 of 10)
Section titled “ControlExtensions.BindIsChecked<T> method (8 of 10)”Binds the checked state to a converted observable value.
public static RadioButton BindIsChecked<T>(this RadioButton radioButton, ObservableValue<T> source, Func<T, bool> convert, Func<bool, T>? convertBack = null)| parameter | description |
|---|---|
| T | Source value type. |
| radioButton | Target radio button. |
| source | Observable source. |
| convert | Source-to-checked-state converter. |
| convertBack | Optional checked-state-to-source converter. |
Return Value
Section titled “Return Value”The radio button for chaining.
See Also
Section titled “See Also”- class RadioButton
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked<TSource> method (9 of 10)
Section titled “ControlExtensions.BindIsChecked<TSource> method (9 of 10)”Binds the checked state to a converted observable value.
public static ToggleButton BindIsChecked<TSource>(this ToggleButton toggleButton, ObservableValue<TSource> source, Func<TSource, bool> convert, Func<bool, TSource>? convertBack = null)| parameter | description |
|---|---|
| TSource | Source value type. |
| toggleButton | Target toggle button. |
| source | Observable source. |
| convert | Source-to-checked-state converter. |
| convertBack | Optional checked-state-to-source converter. |
Return Value
Section titled “Return Value”The toggle button for chaining.
See Also
Section titled “See Also”- class ToggleButton
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsChecked<TSource> method (10 of 10)
Section titled “ControlExtensions.BindIsChecked<TSource> method (10 of 10)”Binds the checked state to a converted observable value.
public static ToggleSwitch BindIsChecked<TSource>(this ToggleSwitch toggleSwitch, ObservableValue<TSource> source, Func<TSource, bool> convert, Func<bool, TSource>? convertBack = null)| parameter | description |
|---|---|
| TSource | Source value type. |
| toggleSwitch | Target toggle switch. |
| source | Observable source. |
| convert | Source-to-checked-state converter. |
| convertBack | Optional checked-state-to-source converter. |
Return Value
Section titled “Return Value”The toggle switch for chaining.
See Also
Section titled “See Also”- class ToggleSwitch
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls