Hello Team,
I am trying to incorporate a mutli - line textbox with intellisense in a WPF window. When a user enters predefined characters in the textbox (e.g. "[","."), a list box should be displayed with available options. I am trying not to reinvent the wheel, hence, I am wondering if I can implement the desired features with the available infragistics controls without any customisation. Please help. Thank you.
Regards,
Sherif
Hello Sherif,
Thank you for your post. I have been looking into it and since we don’t have such control I can suggest you use our cross-platform XamComboEditor control. You can set its CustomValueEnteredAction Property to Allow in order to allow the user to enter new values. Also you can set AutoComplete Property to true or false based on your requirements. Also you can remove the DropDown button by retemplating the control. I created a small sample for you where I implemented these things. You can use the sample as a base for further customizations you need.
Thank you Stefan. Is it possible to have the drop down functionality within a multi line textbox. The dropdown list (autocomplete feature) will only be displayed when a user types predefined specific characters e.g. "[".
Best regards,
Please feel free to let us know if you have any other questions with this matter.
Hello Stefan and Danko,
Thank you all for your help and assistance. I have found what I am looking for in this article: http://www.codeproject.com/Articles/180311/Rich-Text-Box-With-Intellisense-Ability
Can I use an Infragistics control instead of the RichTextBox control providing the same functionalities in the article? Thank you.
Since the proeprties used in this article are custom and they are added to a control which derives from RichTextBox, I believe that you can inherit our XamTextEditor or XamMaskedEditor and add the same properties.
Hope this helps you.
The editors has a SelectionStart Property, which can be set in order to modify the caret position.
Hello Stefan,
Is it possible to get and set the caret position in any of these two controls. In the RichTextBox control, there's a property called CaretPostiion.
Thank you.