We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Intellisense doesn't seem to work the way most apps use intellisense!

I have used the code from Syncfusion documentation for Syntax Editor to test adding Intellisense to my wpf application which uses the Synfusion edit control.

The attached zip contains an MP4 capture of usability issues which I feel this implementation of Intellisense has, which are:

  1. I don't understand why the intellisense menu pops up when you start typing - I would prefer the user to be able to make it pop up with (say) Ctrl+Space.
  2. When it does pop up, it does not disappear if what you type into the editor has no match in the intellisense list.
Is there any way, with this control, that I can:

  1. Make the intellisense menu only pop up in response to (say) Ctrl+Space?  
  2. Disappear if what I type has no match in the list?
  3. On a nested intellisense implementation the intellisense menu should only appear in response to typing (say) '.' providing the preceding text is a valid choice from the parent menu.

Any example code for this would be more than helpful!  Thanks!

Attachment: syntaxeditintellisense_a57072bc.zip

6 Replies

KA Karthick Arjunan Syncfusion Team January 25, 2023 01:55 PM UTC

Hi Peter,


We are validating your reported query. We will update the solution or complete details on or before January 27, 2023.



KA Karthick Arjunan Syncfusion Team January 27, 2023 12:44 PM UTC

Hi Peter,


#Query 1: "Make the intellisense menu only pop up in response to (say) Ctrl+Space?"

Set the EnableIntellisense property value to false to prevent the Intellisense popup from appearing automatically and only display it in response to the Ctrl+Space shortcut.

 

#Query2 & 3:

We are currently working on the remaining queries with high priority and will provide the sample or complete details within one business day. We appreciate your patience until then.





KA Karthick Arjunan Syncfusion Team January 30, 2023 02:37 PM UTC

Peter,


#Regarding query 2 and 3:

Sorry for the inconvenience. At present, there is no direct support for your requirement. However, our team is exploring possible workaround solutions. We will provide you with a sample or complete details within the next two business days. We appreciate your patience until then.




KA Karthick Arjunan Syncfusion Team February 1, 2023 05:02 PM UTC

Peter,

Query 2 : Disappear if what I type has no match in the list?

We have prepared a simple sample for disappearing the intellisense pop-up when the typed text has no match to the list. Kindly check the attached sample and let us know if you have any other queries.

 

Query 3:

Currently, no option to check the valid choice to show the nested intellisense popup. We are investigating the reported query to log it as a feature request and look into the possibilities. We will provide a complete update within two business days (February 3, 2023).



Attachment: EditControl_Intellisense_310a042f.zip


PE Peter February 1, 2023 06:37 PM UTC

Thank you Karthick, the sample definitely answers my query 2 issue!  I'm (very) happy to use that solution.

For query 3, I can trap the '.' key in the KeyDown handler.  So I would need to check the preceding word and, if it has nested intellisense popup data, I could show the intellisense menu.  However, I can't find out how to show the intellisense menu from my code.

Although, as you've implied in your last response, it would be way easier for everyone (except you!) if this behaviour could be encapsulated in the control and therefore just 'happen' at the appropriate time!

Many thanks again.

Pete



KA Karthick Arjunan Syncfusion Team February 3, 2023 01:53 PM UTC

Peter,


Sorry for the inconvenience. We'd like to inform you that the nested intellisense will only be displayed when the previous level intellisense word is present in the ItemsSource. For example, if the preceding word matches one of the first-level Intellisense words, type the '.' character, and then the next level Intellisense appears. There is no need to verify the preceding word because the second-level Intellisense will appear only when the first-level typed word matches the list.

 

We have also prepared the simple sample to show the nested intellisense. Please download the sample and let us know if you have any other queries. For more information, please refer below UG.

 

https://help.syncfusion.com/wpf/syntax-editor/language-support/intellisense-support#applying-multi-level-intellisense-items-in-custom-mode 




Attachment: NestedIntellisense_2ceee6f.zip

Loader.
Live Chat Icon For mobile
Up arrow icon