binding Ribbon Context tab group IsGroupVisible to DockingManager selected Document isSelectedTab?

Hello!

Im a little lost here, I have a ribbon with a Context Tab group.

But that context tab group shoud only be visible if a certain Document is active on the Docking Manager (tabbed)

Is there any way to bind these properties toghether? something like this?

  <syncfusion:ContextTabGroup Label="Scripts" IsGroupVisible="{Binding isSelectedTab, ElementName=tScripts}">
     <syncfusion:RibbonTab Caption="Editor" IsChecked="True" />
     </syncfusion:ContextTabGroup>

ContentControl x:Name="tScripts"
                sf:DockingManager.Header="Scripts"
                sf:DockingManager.State="Document"
                sf:DockingManager.CanFloat="True"     
                sf:DockingManager.CanMaximize="True"
                sf:DockingManager.CanFloatMaximize="True"                    
                sf:DockingManager.CanClose="False"
                sf:DockingManager.CanAutoHide="True"               
                sf:DockingManager.ActivateOnClose="True"
                sf:DockingManager.SideInDockedMode="Tabbed"
                sf:DockingManager.CanDocument="True"               
                sf:DockingManager.CanDockonFloat="False"
                sf:DockingManager.DockAbility="Tabbed"                            
                >
</ContentControl>

Thanks,
Rodo



3 Replies

KJ Keerthana Jegannathan Syncfusion Team October 24, 2017 11:39 AM UTC

Hi Alexis, 
 
Thanks for contacting Syncfusion support. 
 
We suspect that your requirement is to update the “IsGroupVisible” property of ContextTabGroup in Ribbon based on tab selected in DockingManager. If so, you can achieve it using the IsSelected property of the TDILayoutPanel which is set as path to the IsGroupVisible property of ContextTabGroup while binding. We have prepared a simple sample in which we have bind the IsGroupVisible property using TDILayoutPanel and it can be downloaded from the below location.   
 
 
Regards, 
Keerthana J 



AL Alexis October 24, 2017 06:26 PM UTC

Hello Keerthana J . That did the trick , it was simple! 

<syncfusion:ContextTabGroup 
               Name="ContextTabGroup1" IsGroupVisible="{Binding Path=(syncfusion:TDILayoutPanel.IsSelected), Source={x:Reference Name=tScripts}}"                    BackColor="Green" Label="TestGroup">

Thank you very much!!!!


KJ Keerthana Jegannathan Syncfusion Team October 25, 2017 04:33 AM UTC

 
Hi Alexis, 
 
Thanks for your update. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Keerthana J 


Loader.
Up arrow icon