콘텐츠로 이동

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

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

Binds the visibility state to an observable value.

public static T BindIsVisible<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.IsVisible


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

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

Binds the visibility state to a converted observable value.

public static T BindIsVisible<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 a visibility state.

The element for chaining.