MenuItem with bound IsChecked overridden by click
Posted: 19 Nov 2024, 01:58
Hi,
In Unity with Noesis 3.2.5 I have been using a MenuItem which is databound to an object which implements a UniRx ReactiveProperty IsChecked via "{Binding IsChecked.Value, Mode=OneWay}". I have two places this same object is Bound. One in a context menu for which the visual elements are recreated each time the menu is opened. In this menu the IsChecked property is always correct. In the other case the menu is a persistent control, where the checkbox can become desynchronised from the backing property.
It seems that Clicking on the MenuItem always sets the state of the check irrespective of the Binding? Is this the expected behaviour and are there any ways I could work around this?
Thanks.
In Unity with Noesis 3.2.5 I have been using a MenuItem which is databound to an object which implements a UniRx ReactiveProperty IsChecked via "{Binding IsChecked.Value, Mode=OneWay}". I have two places this same object is Bound. One in a context menu for which the visual elements are recreated each time the menu is opened. In this menu the IsChecked property is always correct. In the other case the menu is a persistent control, where the checkbox can become desynchronised from the backing property.
It seems that Clicking on the MenuItem always sets the state of the check irrespective of the Binding? Is this the expected behaviour and are there any ways I could work around this?
Thanks.