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!
Hello,
After working on the functionality that you are trying to achieve and doing some research, the support for TemplateSelectors has been determined to be a new product idea. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
Steps to create your idea:
Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).
Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The benefits of submitting the product idea yourself include:
Direct communication with our product management team regarding your product idea.
Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
Allow you to shape the future of our products by requesting new controls and products altogether.
You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
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.
Unfortuately XamComboEditor does not support TemplateSelectors since it does not inherit from ItemsControl so it does not provide ItemTemplateSelector property.
Regards,
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.
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.