MenuExtensions.BindIsChecked method (1 of 2)
Binds whether the check is shown to an observable value. Clicking the item does not write it back.
public static MenuItem BindIsChecked(this MenuItem item, ObservableValue<bool> source)Sets: MenuItem.IsChecked
See Also
Section titled “See Also”- class MenuItem
- class ObservableValue<T>
- class MenuExtensions
- namespace Aprillz.MewUI
MenuExtensions.BindIsChecked<TSource> method (2 of 2)
Section titled “MenuExtensions.BindIsChecked<TSource> method (2 of 2)”Binds whether the check is shown to a converted observable value, such as whether a chosen value equals the one this item stands for.
public static MenuItem BindIsChecked<TSource>(this MenuItem item, ObservableValue<TSource> source, Func<TSource, bool> convert)| parameter | description |
|---|---|
| TSource | Source value type. |
See Also
Section titled “See Also”- class MenuItem
- class ObservableValue<T>
- class MenuExtensions
- namespace Aprillz.MewUI