I have a XamDockManger:
<ig:XamDockManager Grid.Row="1" Name="xamDockManager1" Theme="[current]" ActivePaneChanged="xamDockManager1_ActivePaneChanged"> <ig:DocumentContentHost Name="documentContentHost1">
<ig:SplitPane Name="splitPane1"> <ig:TabGroupPane Name="tabGroupPane1">
</ig:TabGroupPane> </ig:SplitPane>
</ig:DocumentContentHost> </ig:XamDockManager>
When I open 2 panes of the same userControl and switch between panes the XamComboEditor controls ItemSource get set to null. Here is the code:
<igWpf:XamComboEditor Grid.Row="0" Name="xamComboEditorAgency" Theme="[current]" Value="{Binding Path=AgencyID}"> <igWpf:XamComboEditor.ItemsProvider> <igWpf:ComboBoxItemsProvider /> </igWpf:XamComboEditor.ItemsProvider> </igWpf:XamComboEditor>
Here is how I set the Provider (Data is a DataTable):xamComboEditorAgency.ItemsProvider.ItemsSource = Cache.Agencies.Data.DefaultView;xamComboEditorAgency.ItemsProvider.DisplayMemberPath = "Display";xamComboEditorAgency.ItemsProvider.ValuePath = "ID";
The workaround I had to do is when ActivePane Changes rerun ComboEditor Data method (it does the above code to all comboEditors) again.
Any ideas?
Hello,
I am glad that my approach was helpful to you. Please do not hesitate to let me know if you have any further questions on the mater.
Hmmm, I tried to edit your project, I implemented just like I did in mine but I can't get it to fail. There must be something in my side then. Just can't find it. I'll keep looking, but the work around works.
Thank you for your post. I have been looking into it and I could not manage to reproduce your issue. I have created a small sample for you, named xamComboEditorSwitchPanes. Would you please modify the attached sample with your functionality in order for me to be able to identify the issue and provide you with better support. I am looking forward to your response.