Microsoft's ComboBox has the SelectedTemplate. Is there something similar for the XamComboEditor?I need to set a template for the selectedItem in the XamComboEditor/
Thanks!
Hi Fernando,
XamComboEditor does not have such a property. This however could be achieved by re-templating ComboEditorItemControl. You need to add new content presenter for the selected items and hide/show both ContentPresenters through a storyboard transiting between Selected/Unselected states.
Check out the attached sample.
P.S. I wasn't able to find such property on the Microsoft's ComboBox either.
Could this be done with a ItemTemplateSelector?, I'm asking because in our project we have a class that inherits from DataTemplateSelector so we can set two different templates.
Unfortuately XamComboEditor does not support TemplateSelectors since it does not inherit from ItemsControl so it does not provide ItemTemplateSelector property.
Regards,
I find troublesome that Infragistics chose to implement the ComboBox in a way so different from the Microsoft Control. And this doesn't happen only with the ComboBox, but with so many other controls.
You expect Infragistics to add functionality and not to limit you in what you can accomplish. Microsoft ComboBox inherits from ItemsControl, since it is a control with a List of items, it makes sense. Why is that Infragistics decides to go in the opposite direction and then calls the control "Combo"?, if anything it should be called TexboxWithAutoComplete, that way it wouldn't cause confusion.
Instead of being able to use an ItemTemplateSelector to use a DataTemplate for the Selected Item and one for the rest of the items, from your post it seems you have to re-template the whole control.
What is then the advantage of using Infragistics? You can accomplish Auto-Complete logic with the Microsoft Control if you do some additional work.
With Infragistics Control you need to re-template the whole control to be able to simply set the DataTemplate of the selected item, with all the issues that this can bring, without mentioning the additional work to make this combo box look the same than the rest of combo box of the application.
I think Infragistics Team needs to look into this with more detail, by calling this control "Combo" we have been wasting a lot of time thinking that it would offer the same and more than a Microsoft Combo.
Hello Dzyann,
Thank you for your feedback. If I can assist you with anything, please do not hesitate to ask.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
Krasimir,
Thanks, we didn't use the Infragistics control in the end.
Also I didn't post the suggestion in the website you told me because you have to log with a separate account to the Infragistics one and that is not viable.
Thanks for your help.
Dzyann
I am just checking if you require any further assistance on the matter.
Thank you for your reply. You can sign up in the Product Ideas site and you can post your ideas. You can see in the attached screenshot, how you can sign up.
Please let me know if you have any further questions on the matter.
Hi Konstantin,
Thanks for looking into this further.
I tried going to that website, correct me if I am wrong but you can not login there with the Infragistics User Id?
Regards.