Hi ,
I am really new to WPF infragistics. I have an XamComboEditor that needs to have one out of 4 different lists as its ItemsSource based on a user event . Initially in the constructor of my code behind , I am setting the ItemsSource to one of the 4 lists right after InitializeComponent.
When I run the app , it adds 1,2,3... numbers to my XamComboEditor instead of the List I porvided.
Could you help me do this ? Is there any setting I need to override .
My XAML :
<ig:XamComboEditor ItemsSource="{Binding Attributes}" AllowMultipleSelection="True" CheckBoxVisibility="Visible" Name="XamComboEditor" HorizontalAlignment="Left" Margin="559,241,0,0" VerticalAlignment="Top" Width="171"/>
I should not want to set ItemsSource in XAMl since I will keep changing it based on user selection.
My code behind constructor:
public MainWindow() { List<string> Attributes =new List<string> // one of the 4 lists { "Name", "Client", "Country", "Field", "Geomarket", "Area", "Formation Types", "Fluid Types", "Drive Mechanisms", "EOR Processes" };
InitializeComponent();
XamComboEditor.ItemsSource = Attributes;
}
On debugging I found that it sets up the item source all right. but later on it gets overriden by numbers , which I couldn't track where it got those from.
Regards,
Prasaanth
Hello Prasaanth,
Thank you for your post!
I have been investigating this issue you are describing, and I have added the exact code that you have provided to my project, but I have not been able to reproduce this issue you are describing. My tests were made using Infragistics for WPF 2015.1 specific version 15.1.20151.2055 - is this the same version you are using?
I feel that there must be something else working on your XamComboEditor for the numbers to be showing instead of the List<string> that you are setting the ItemsSource to, but I am not entirely sure what that is from your description. I have attached the sample project that I used to test this. Could you please modify this sample project so that it reproduces this issue you are seeing and send it back?
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support