How can I create a XamTextEditor with Popup much like XamComboEditor. The difference being in the Popup control I have custom control which has 3 different ItemSources with corresponding list boxes. In terms of behaviour its pretty much same, when item is selected in any of the list box. The popup closes and the selected item is set back to the cell.
Hello,
Thank you for posting!
I have been looking into your description and I could suggest you to use the MouseUp event of the editor in order to display the popup. Then when item in the popup is selected you may update the Value and the DisplayText properties of the editor.
It is also possible to change the default template of the editor. The default style is located in the EditorsGeneric_Express.xaml file under the Infragistics folder: C:\Program Files (x86)\Infragistics\NetAdvantage 2013.1\WPF\DefaultStyles\Editors
Thanks Maria, I will work on building something along your suggestion.
Coming from the Infragisitics WindowsForms world, I was expecting something similar components in Infragistics WPF
psuedo code from winforms,
UltraTextEditor.ButtonsRight.Add ( DropDownEditorButton ) DropDownEditorButton. Control = MyPopControl DropDownEditorButton. AfterCloseUp += { UltraTextEditor. Value = MyPopContorl. Value }
UltraTextEditor.ButtonsRight.Add ( DropDownEditorButton )
DropDownEditorButton. Control = MyPopControl
DropDownEditorButton. AfterCloseUp += { UltraTextEditor. Value = MyPopContorl. Value }
I am guessing I have to start thinking WPF way....
As am experiment I created an Popup editor based on post "Adorning XamDataGrid with a Popup Editor". Here I am view model to the adorning control and in the control I am setting the DataContext to Point. I display the Popup editor on cell double click. And apply the new Point on Button click.
This seems like step in the right direction. But concerned, is there are better way to achieve this. How come there is no ValueEditor derived type to support this kind of scenario? CustomHostEditor is the only reference I find for this kind of requirement. However it does not fit this scenario.
I have used Point just an example. The type used in the real application is different.
I have attached the code for reference.
I have been looking into your requirement and currently this is the best approach that we can suggest you. After some research this 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>.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- 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.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and 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.