콘텐츠로 이동

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.

The check box for chaining.

Sets: CheckBox.IsChecked, ToggleBase.IsChecked


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.

The check box for chaining.


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.

The radio button for chaining.


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.

The toggle button for chaining.


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.

The toggle switch for chaining.


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.

The check box for chaining.


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.

The radio button for chaining.


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.

The radio button for chaining.


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.

The toggle button for chaining.


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.

The toggle switch for chaining.