Skip to content

Commit 3b39c07

Browse files
Update theming snippet in Overview docs
- merge the xmlns declarations into the single ThemeBehavior XAML snippet - drop the separate note block per PR review feedback
1 parent 1cac576 commit 3b39c07

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

CS/CodeEditor/Docs/Overview.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ By default, `CodeEditor` does not automatically track DevExpress theme changes.
120120
To synchronize Monaco with the active DevExpress theme, attach `ThemeBehavior`:
121121

122122
```xml
123+
xmlns:ce="clr-namespace:CodeEditor;assembly=CodeEditor"
124+
xmlns:cet="clr-namespace:CodeEditor.Theming;assembly=CodeEditor"
125+
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
126+
127+
...
128+
123129
<ce:CodeEditor
124130
Text="{Binding Code}"
125131
EditorLanguage="csharp">
@@ -131,14 +137,6 @@ To synchronize Monaco with the active DevExpress theme, attach `ThemeBehavior`:
131137
</ce:CodeEditor>
132138
```
133139

134-
> **Note:** Declare the namespace prefixes used above on the root element of your view (as in the Quick Start):
135-
136-
```xml
137-
xmlns:ce="clr-namespace:CodeEditor;assembly=CodeEditor"
138-
xmlns:cet="clr-namespace:CodeEditor.Theming;assembly=CodeEditor"
139-
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
140-
```
141-
142140
`ThemeBehavior`:
143141

144142
- Detects the current DevExpress theme

0 commit comments

Comments
 (0)