ControlExtensions.BindIsExpanded method (1 of 2)
Binds the expanded state to an observable value.
public static Expander BindIsExpanded(this Expander expander, ObservableValue<bool> source)| parameter | description |
|---|---|
| expander | Target expander. |
| source | Observable source. |
Return Value
Section titled “Return Value”The expander for chaining.
Sets: Expander.IsExpanded
See Also
Section titled “See Also”- class Expander
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.BindIsExpanded<TSource> method (2 of 2)
Section titled “ControlExtensions.BindIsExpanded<TSource> method (2 of 2)”Binds the expanded state to a converted observable value.
public static Expander BindIsExpanded<TSource>(this Expander expander, ObservableValue<TSource> source, Func<TSource, bool> convert, Func<bool, TSource>? convertBack = null)| parameter | description |
|---|---|
| TSource | Source value type. |
| expander | Target expander. |
| source | Observable source. |
| convert | Source-to-expanded-state converter. |
| convertBack | Optional expanded-state-to-source converter. |
Return Value
Section titled “Return Value”The expander for chaining.
See Also
Section titled “See Also”- class Expander
- class ObservableValue<T>
- class ControlExtensions
- namespace Aprillz.MewUI.Controls