Hope somebody can help out here.
We have recently started using the RadSyntaxEditor in an application that uses the Prism framework. There have been some posts about the SyntaxEditor not showing in the UI unless you put it in a ContentControl. We did this and bound the Content to the SyntaxEditor instance in the VM.
This worked fine and we can add a custom tagger but none of the event subscriptions to the Document.TextContentChanged event seem to work.
If we then template the SyntaxEditor in the XAML and bind to an instance of the TextDocument like this, how do you set up a custom tagger?
<ControlTemplate x:Key="SyntaxEditorControlTemplate" TargetType="{x:Type ContentControl}">
<telerik:RadSyntaxEditor AutoScrollToCaretOnTextChange="True"
CaretDisplayMode="Block"
Document="{Binding SyntaxTextDocument}">
</telerik:RadSyntaxEditor>
</ControlTemplate>
Can anybody point us to an example of using the SyntaxEditor with MVVM please.
Thanks