Hi,
Am using a ToggleButtonTool inside a Menu. And clicking on ToggleButtonTool opens a dialog which has OK and Cancel button. If user clicks on OK button then,ToggleButtonTool IsChecked state should be checked. If user clicks on Cancel button, then the ToggleButtonTool IsChecked state should be false. The issue is when ToggleButtonTool is clicked again when the IsChecked state is true it's resetting the state and the tick image goes away even if the binding is set as OneWay
Hello Smitha,
Thank you for contacting Infragistics.
Which component are you using with the ToggleButton? (eg. XamRibbon)What is the IsChecked property bound to?
I attached a sample below where I attempted to isolate the behavior. Please modify it to your application's specifications and reattach it here.
Let me know if you have any questions.
2727.WpfApplication1.zip
I reproduced the behavior where the ToggleButtonTool is not updated properly and attached a new sample below to demonstrate this. I also submitted a development item: 252222 for us to investigate further, in addition to a private support case for any questions and updates we may have. The case is CAS-195240-J2X5N2. Let me know if you have any questions.
eg. Steps to reproduce:
i. run sample1. Click Checkbox beneath ribbon "is it really checked"2. Click MenuTool in ribbon ABC3. Click ToggleButtonTool checkbox "whatever"4. Repeat step 15. Repeat step 1
Results: ToggleButtonTool is checked.
ToggleButtonTool should be unchecked.
Note, if you want the ToggleButtonTool to update the rest of your application you should use OneWayToSource. However, if the steps above don't accurately demonstrate the issue please let me know.
5102.WpfApplication1.zip