콘텐츠로 이동

ControlExtensions.BindIsEnabled<T> method (1 of 2)

이 콘텐츠는 아직 번역되지 않았습니다.

Binds the enabled state to an observable value.

public static T BindIsEnabled<T>(this T element, ObservableValue<bool> source)
where T : UIElement
parameter description
T Visual type.
element Target element.
source Observable source.

The element for chaining.

Sets: UIElement.IsEnabled


ControlExtensions.BindIsEnabled<T,TSource> method (2 of 2)

Section titled “ControlExtensions.BindIsEnabled<T,TSource> method (2 of 2)”

Binds the enabled state to a converted observable value.

public static T BindIsEnabled<T, TSource>(this T element, ObservableValue<TSource> source,
Func<TSource, bool> convert)
where T : UIElement
parameter description
T Visual type.
TSource Observable value type.
element Target element.
source Observable source.
convert Converts the source value to an enabled state.

The element for chaining.