Posted 14 years ago
by John Darlington

Until you guys release the Single Line Mode and Automatic Intelliprompt for the WPF SyntaxEditor, I am hosting the Wind Forms Version in a Popup which is called from my WPF app. Its not beautiful but it will get us over the line in the mean time.
The reason I need SyntaxEditor is because we are rehosting the Windows Workflow Designer and the VB Expression Editor is only a simple text box with no Intellisense. So I am using the control in Single Line mode where the idea is to be able to edit VB expressions. So in single line mode I was hoping the user could do something like:
Now.Hour < 12
When the above Workflow ACtivity expression is hosted in Visual Studio we get Intellisense right from the start ie Now is in the list, then there is Hours in the list once the . is pressed. Whereas in SyntaxEditor using the VBSyntaxLanguage, if I start to Type in Now .. there is no Intelliprompt and then if I type the above in directly I get a Red sqiggly saying 'Namespace member declaration expected' ..
So the editor is assuming I am in a document and need the imports, namespace etc ... which I do actually need, but how can I just edit a single line of code, which is really in the context of a document with all the imports and external variables.
Hope that makes sense and I am sure there is a simple answer to this ... Sorry if this is a basic question .. I haven't used this version of SyntaxEditor for a couple of years.
Thanks in advance.
[Modified at 03/16/2011 09:00 PM]
[Modified at 03/17/2011 12:58 AM]
The reason I need SyntaxEditor is because we are rehosting the Windows Workflow Designer and the VB Expression Editor is only a simple text box with no Intellisense. So I am using the control in Single Line mode where the idea is to be able to edit VB expressions. So in single line mode I was hoping the user could do something like:
Now.Hour < 12
When the above Workflow ACtivity expression is hosted in Visual Studio we get Intellisense right from the start ie Now is in the list, then there is Hours in the list once the . is pressed. Whereas in SyntaxEditor using the VBSyntaxLanguage, if I start to Type in Now .. there is no Intelliprompt and then if I type the above in directly I get a Red sqiggly saying 'Namespace member declaration expected' ..
So the editor is assuming I am in a document and need the imports, namespace etc ... which I do actually need, but how can I just edit a single line of code, which is really in the context of a document with all the imports and external variables.
Hope that makes sense and I am sure there is a simple answer to this ... Sorry if this is a basic question .. I haven't used this version of SyntaxEditor for a couple of years.
Thanks in advance.
[Modified at 03/16/2011 09:00 PM]
[Modified at 03/17/2011 12:58 AM]