Skip to content

Commit 8dc386b

Browse files
Merge pull request #1608 from syncfusion-content/WPF-925465-Added_Note_In_Themes
WPF-925465-Added Note In Themes
2 parents f6b1e70 + 2b718cd commit 8dc386b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

wpf/Diagram/Stencil/Serialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation: ug
1111

1212
[Stencil](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.Stencil.html) serialization is the process of converting the state of stencil into a stream of bytes to recreate them when needed. Such streams can be stored in a database, as a file, or in memory. The reverse process is called deserialization.
1313

14-
### Saving the Stencil
14+
## Saving the Stencil
1515

1616
In Stencil, [DataContractSerializer](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.datacontractserializer?view=net-8.0) is used for serialization. It allows you to serialize and save your stencil into a stream. Here is a simple code example showing how to save the stencil:
1717

@@ -37,7 +37,7 @@ stencil.Save(str);
3737
{% endhighlight %}
3838
{% endtabs %}
3939

40-
### Loading the Stencil
40+
## Loading the Stencil
4141

4242
On deserialization, the saved stream is used to load the Stencil. We can continue using previously saved stencil by loading the saved stream. Here is a simple code example showing how to load the stencil:
4343

wpf/Diagram/Stencil/SymbolGroup/SymbolGroup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ To add symbols to a Stencil through `SymbolGroupViewModel`, you can utilize the
348348
</syncfusion:Stencil.SymbolGroups>
349349
</syncfusion:Stencil>
350350

351-
![Category Source](SymbolGroup_images/BuiltInShapesList.png)
352-
353351
{% endhighlight %}
354352

353+
![Category Source](SymbolGroup_images/BuiltInShapesList.png)
354+
355355
## Customize the appearance of the symbols in the built-in categories
356356

357357
The symbol sizes for the built-in symbol categories are equivalent to the Visio symbol size. Each symbol available in the category collection can be customized by the [PrepareSymbolViewModel](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.Stencil.Stencil.html#Syncfusion_UI_Xaml_Diagram_Stencil_Stencil_PrepareSymbolViewModel_System_Object_System_String_System_String_) virtual method of the stencil class. Symbols can be modified by using the following properties of the `PrepareSymbolViewModel` method:

wpf/Diagram/Themes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ node.Annotations = new ObservableCollection<IAnnotation>()
105105

106106
[View Sample in GitHub](https://github.com/SyncfusionExamples/WPF-Diagram-Examples/tree/master/Samples/Theme/ThemeStyle).
107107

108+
N> When you apply a theme, it affects all [SfDiagram](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SfDiagram.html) elements and overrides any individual `ShapeStyle` settings for those elements. And also, you cannot update the `ShapeStyle` property for diagram elements when a theme is applied.
109+
108110
## See Also
109111

110112
[How to apply built-in theme for node and connector?](https://support.syncfusion.com/kb/article/9995/how-to-apply-built-in-theme-for-node-and-connector-in-wpf-diagram-sfdiagram)

0 commit comments

Comments
 (0)