Skip to content

Commit 3eba052

Browse files
Merge pull request #4 from SyncfusionExamples/Theme_Sample
Corrected the Xaml code high lights
2 parents 77370ef + e103d37 commit 3eba052

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

README.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,23 @@ This resource dictionary includes keys and their corresponding color codes for a
2323

2424
When using more number of Syncfusion controls in an application, to make the process easier for merging the control style dictionaries of the controls, the [SyncfusionThemeResourceDictionary](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Themes.SyncfusionThemeResourceDictionary.html) class has been provided for automatic merging.
2525

26-
{% highlight xaml %}
27-
28-
<Application xmlns:base="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
29-
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core"
30-
x:Class="SampleBrowser.Maui.App"
31-
...>
32-
<Application.Resources>
33-
<ResourceDictionary>
34-
<ResourceDictionary.MergedDictionaries>
35-
<!-- Theme resource dictionary -->
36-
<syncTheme:SyncfusionThemeResourceDictionary VisualTheme="MaterialDark"/>
37-
</ResourceDictionary.MergedDictionaries>
38-
</ResourceDictionary>
39-
</Application.Resources>
40-
41-
....
42-
43-
</Application>
44-
45-
{% endhighlight %}
26+
**XAML**
27+
```
28+
<Application xmlns:base="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
29+
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core"
30+
x:Class="SampleBrowser.Maui.App"
31+
...>
32+
<Application.Resources>
33+
<ResourceDictionary>
34+
<ResourceDictionary.MergedDictionaries>
35+
<!-- Theme resource dictionary -->
36+
<syncTheme:SyncfusionThemeResourceDictionary VisualTheme="MaterialDark"/>
37+
</ResourceDictionary.MergedDictionaries>
38+
</ResourceDictionary>
39+
</Application.Resources>
40+
41+
....
42+
43+
</Application>
44+
```
4645

0 commit comments

Comments
 (0)