Contextual Tabs / ContextTabGroup

Hi,

I'm a Syncfusion rookie, I have built a Ribbon tool bar with all of it's bars and tabs as specified for me.

now I have to make two middle tabs in the ribbon as contextual tabs, this apparently seemed to be a simple task. but I found myself unable to do it.


my first state looked like this:

:

:
..
..
:

this tabs needs to be contextual


so does this

:
more tabs go here
:



if I wrap the tabs with ContextTabGroup element as shown in
the code here: http://help.syncfusion.com/cr_74/cref_files/Tools_WPF/html/1b8108ce-2b62-3131-878f-c8d87563d547.htm

I get the following error: "specified element is already the logical child of another element dissconnect it first"

looking at this example: http://help.syncfusion.com/ug_74/toolswpf/ContextTabGroups.html and trying to adjust it in my code

I have moved the "modified tabs" to the end of my ribbon tabs
and wrapped them as following:



..
..



this had worked!

but is did not work in the beginning of Ribbon tabs nor at the middle where I need it to be..

is there a way to do that?

Thank you.
Victor







2 Replies

VK Victor Kandalaft February 23, 2011 09:44 AM UTC

Contextual Tabs are defined to be located at the end of Ribbon's tabs, therefore one has to take that into account.

now I'm trying to bring one of the ContextTabGroup that I made
to be visible when right clicking on a FlowDocument area.

in my event handler I've written:

myContextTabGroup1.Visibility = System.Windows.Visibility.Visible;

this had not worked.

I have tried to do the same by hiding one of my ribbon tabs in the same event handler like this:

myRibbonTab1.Visibility = System.Windows.Visibility.Hidden;

this had worked!

what am I missing?



DM Deenadhayalan M Syncfusion Team March 1, 2011 09:33 AM UTC

Hi Victor,

The issue with ContextTabGroup in Ribbon control has been confirmed as a defect. We’ve created an incident 77559 to follow up.

Please let us know if you have any queries.

Thanks,
Deena



Loader.
Up arrow icon