We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ContextTabGroup IsGroupVisible Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

119618 Jul 15,2015 07:56 AM Jul 16,2015 06:54 AM WPF 2
loading
Tags: Ribbon
Tim
Asked On July 15, 2015 07:56 AM

I am trying to bind ContextTabGroup.IsGroupVisible to my view model to control the visibility of the ContextTabGroup, however, it is not working as when I change the DataContext of the ribbon, IsGroupVisible is not reacting to the change.

<syncfusion:Ribbon DataContext="{Binding Content}">
<syncfusion:ContextTabGroup IsGroupVisible="{Binding IsGroupOneVisible}" />
</syncfusion:Ribbon>
The binding to Content is working fine and reacts to changes in the underlying ViewModel but the ContextTabGroup does not update it's binding to IsGroupVisible when Content is changed.
Thanks
Tim

Tim
Replied On July 15, 2015 12:36 PM

Solved it...

The IsGroupVisible dependency property must be OneWay as default so you have to add Mode=TwoWay to the binding.

This is really a miss on the developers part, why would you not define the dependency property as BindsTwoWayByDefault when it is not a read only property.  I wonder how many more of these I will come across...

Tim

Mariappan S [Syncfusion]
Replied On July 16, 2015 06:54 AM

Hi Tim,

We are sorry about the inconvenience caused.

We will include the fix “BindsTwoWayByDefault” to the IsGroupVisible dependency property of the ContextTab in our Vol 3 2015 release which will be scheduled to be rolled by the end of September 2015 tentatively.

Please let us know if you need further assistance.


Regards,
Mariappan S.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;