
I'm using the C# language in the syntax editor and while other capabilities started working immediately, code outlining never became enabled. Do I need to explicitly enable that feature? If so, how?
Things I've tried:
1. Setting the editor's Document.Language property to a new CSharpSyntaxLanguage instance.
2. Setting Document.OutliningMode to OutliningMode.Automatic.
3. Setting IsOutliningMarginVisible to true (just in case)
4. Running EditorCommands.StartAutomaticOutlining.Execute.
Note that I am using text binding, in case that makes a difference.
Also, will C# outlining account for region tags (as in #region - #endregion)? It doesn't seem to in your samples, which is why I'm asking.
Thanks,
-Craig
[Modified at 03/01/2011 09:42 PM]
Things I've tried:
1. Setting the editor's Document.Language property to a new CSharpSyntaxLanguage instance.
2. Setting Document.OutliningMode to OutliningMode.Automatic.
3. Setting IsOutliningMarginVisible to true (just in case)
4. Running EditorCommands.StartAutomaticOutlining.Execute.
Note that I am using text binding, in case that makes a difference.
Also, will C# outlining account for region tags (as in #region - #endregion)? It doesn't seem to in your samples, which is why I'm asking.
Thanks,
-Craig
[Modified at 03/01/2011 09:42 PM]