Binding to Button.IsChecked

Ribbon for WPF Forum

Posted 12 years ago by Bryan Livingston
Avatar
I've got the following control which is working fine:

<ribbon:CheckBox Label="Bold" IsChecked="{Binding Path=Text.Bold, Mode=TwoWay}" />
I'm tring to change it over to a button to make a small bold button, but I can't seem to bind to IsChecked. Neither of these two work:


<ribbon:Button Label="Bold" IsChecked="{Binding Path=Text.Bold, Mode=TwoWay}" />

<ribbon:Button Label="Bold" >
                                <ribbon:Button.CommandParameter>
                                    <ribbon:CheckableCommandParameter IsChecked="{Binding Path=Text.Bold, Mode=TwoWay}" />
                                </ribbon:Button.CommandParameter>
</ribbon:Button>

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Bryan,

I'm thinking you don't have the latest release. This was an issue a while back but was fixed and works in a test I just did.


Actipro Software Support

Posted 12 years ago by Bryan Livingston
Avatar
I finally figured this one out. The INotifyPropertyChanged event was broken on the object that I was binding to. The only reason it appeared to work for me on the check box is that the checkbox was the source of the change, and thus didn't need to get notified of the property changing.

Thank you for your top notch support.
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.