
We have a C# editor that's been using the WinForms syntax editor and we want to migrate it to the WPF Syntax Editor. To display intellisense, we're using the DotNetProjectResolver and assigning it to our WPF SyntaxEditor's Document.LanguageData property. So, like this:
For each C# file in our project's collection, we do:
We also add various assembly references to the resolver.
While I understand that the .net languages add-on doesn't have built-in intellisense support yet, is there a way we can leverage the project resolver with the wpf syntax editor so we can use it to display intellisense?
Once Intellisense is available in the add-on, will we still need the resolver or will there be a different way to handle this scenario?
Thanks,
-Craig
public CodeEditor()
{
InitializeComponent();
_dotNetProjectResolver = new DotNetProjectResolver();
_dotNetProjectResolver.CachePath = Path.Combine(Path.GetTempPath(), "MistScriptEditorCache");
wpfSyntaxEditor.Document.LanguageData = _dotNetProjectResolver;
}
public CodeEditor()
{
_dotNetProjectResolver.SourceProjectContent.LoadForCode(new ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage(), file.Path, file.Contents);
While I understand that the .net languages add-on doesn't have built-in intellisense support yet, is there a way we can leverage the project resolver with the wpf syntax editor so we can use it to display intellisense?
Once Intellisense is available in the add-on, will we still need the resolver or will there be a different way to handle this scenario?
Thanks,
-Craig