Skip to content

Commit ce24a68

Browse files
Merge pull request #434 from syncfusion-content/WPF-62008StencilUGCorrection
WPF-62008 Correct inaccurate or outdated code samples and Code snippet
2 parents 30a78ab + cb2039c commit ce24a68

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

wpf/Diagram/Stencil/Stencil.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The diagram elements such as [NodeViewModel](https://help.syncfusion.com/cr/wpf/
5656
<!--Initialize the SymbolSource-->
5757
<stencil:Stencil.SymbolSource>
5858
<!--Define the SymbolCollection-->
59-
<local:SymbolCollection>
59+
<Syncfusion:SymbolCollection>
6060
<syncfusion:NodeViewModel x:Name="node" UnitHeight="70" UnitWidth="100" OffsetX="100" OffsetY="100" Shape="{StaticResource Rectangle}">
6161
</syncfusion:NodeViewModel>
6262
<syncfusion:ConnectorViewModel SourcePoint="100,100" TargetPoint="200,200"/>
@@ -104,7 +104,7 @@ The diagram elements such as [NodeViewModel](https://help.syncfusion.com/cr/wpf/
104104
</Syncfusion:NodeCollection>
105105
</Syncfusion:GroupViewModel.Nodes>
106106
</Syncfusion:ContainerViewModel>
107-
</local:SymbolCollection>
107+
</Syncfusion:SymbolCollection>
108108
</stencil:Stencil.SymbolSource>
109109

110110
{% endhighlight %}
@@ -194,11 +194,6 @@ ContainerViewModel container = new ContainerViewModel()
194194
(stencil.SymbolSource as SymbolCollection).Add(grp);
195195
(stencil.SymbolSource as SymbolCollection).Add(container);
196196

197-
//Adding the ISymbol to the SymbolCollection.
198-
public class SymbolCollection : ObservableCollection<Object>
199-
{
200-
}
201-
202197
{% endhighlight %}
203198

204199
{% endtabs %}
@@ -234,10 +229,10 @@ The [SymbolViewModel](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diag
234229

235230
<stencil:Stencil.SymbolSource>
236231
<!--Define the SymbolCollection-->
237-
<local:SymbolCollection>
232+
<Syncfusion:SymbolCollection>
238233
<Syncfusion:SymbolViewModel Symbol="User" SymbolTemplate="{StaticResource symboltemplate}"/>
239234
<Syncfusion:SymbolViewModel Symbol="Diamond" SymbolTemplate="{StaticResource Diamond}"/>
240-
</local:SymbolCollection>
235+
</Syncfusion:SymbolCollection>
241236
</stencil:Stencil.SymbolSource>
242237

243238
{% endhighlight %}
@@ -264,11 +259,6 @@ SymbolViewModel symbol = new SymbolViewModel()
264259
(stencil.SymbolSource as SymbolCollection).Add(imagenode);
265260
(stencil.SymbolSource as SymbolCollection).Add(symbol);
266261

267-
//Adding the ISymbol to the SymbolCollection.
268-
public class SymbolCollection : ObservableCollection<Object>
269-
{
270-
}
271-
272262
{% endhighlight %}
273263
{% endtabs %}
274264

0 commit comments

Comments
 (0)