Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1285
Switch Pane, ItemSource in XamComboEditor get set to null if binding property has value
posted

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?