
Hi, we are trying to reuse control for multiple languages. So depending on document type xml or json, we want to change SyntaxEditor.Document.Language, either with XAML, code behind or VM.
EditorDocument = new EditorDocument() { Language = new JsonSyntaxLanguage() }; compliles, thou not sure if that will work
but
EditorDocument = new EditorDocument() { Language = new XmlSyntaxLanguage() }; fails to compile complaining XmlSyntaxLanguage is not of type ISyntaxLanguage.
We want to set language on load depending on document type. Please let me know how do I set language runtime. Or is there some other method to achive this.
Thanks.