Hello,
I have a tabcontrol and I have 2 tabitems on it.
In The first tabitem I have 3 Xamdatachart and in the second I have 2 Xamdatachart. All the Xamdatacharts in all Tabitems Have the same SyncManager.
When I open my screen the first time and zoom on the first xamdatachart in the first tab item I have the same zomm in all xamdatachart. Thats is good but when I click on second tabitem and zoom the xamdatachart in first tab item dont zoom.
There is problem with Syncronisation..
Can you help me please.
thanks
Hello Anis,
The zooming worsk the first time becasue at first both XamDataCharts in the TabControl are loaded, but when yo uselect the second tab the first tab's Content is removed from the visual tree. In order to apply the zoom when select tabs you can handle the Laoded event of the XamDataCharts taht are in the TabControl and set tehir WindowRect Proeprty to the WindowRect of some of the visible ones. I modified teh sample like this.
Hope this helps you.
Thanks for you replay.
Zooming at the first time, the charts are synchronized.So if the tabcontrol has a single ContenentPresenter why the first zoom working fine? do you know how to do to have a synchronized xamdatacharts in different tabcontrols.
Regards.
Anis
I have been looking into your sample and I can say that this is probably happening because of how the TabControl works (the TabGroupPane is a derived TabControl). The TabControl has a single ContentPresenter that is used to bind to the Content(Template(Selector)) of the selected TabItem. So as a tab is selected, the old tab's info is no longer referenced by the tabcontrol's ContentPresenter and therefore its content comes out of the visual tree (if it’s an element) and the contenttemplate is released.
Hello Stefan,
I am waiting for your replay:
Can you please see please the solution attached to this post.
and follow steps:
Execute the project:
1- Zoom on any one of displayed Data chart.
2- click on tab2 and zoom (+/-).
3- back on tab1 and you ill see the xamdatachart is not synchronized with other xamdatachart.
Thanks for your help.
Thanks .
But I didn't use a XamDockManger but a syncManger like this:
<ig:SyncManager.SyncSettings> <ig:SyncSettings SyncChannel="syncGroup1" SynchronizeHorizontally="True" SynchronizeVertically="False" IsManipulationEnabled="True" UseLayoutRounding="False" /> </ig:SyncManager.SyncSettings>
So I attached an example project :
Steps:
3- back on tab1 and you ill see the xamdatachart is not syncronazid with the top xamdatachart.