Select to view content in your preferred language

Creating custom symbols in Expression Blend

679
4
09-22-2011 11:25 PM
DenisT
by
Deactivated User
I want to learn how to create custom symbols in Expression Blend.
Are there any articles or video demonstrating a symbol creation from scratch using Blend?
Or the only way is to type XAML in VS?

Thanks in advance.
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
There are many video tutorials here: http://expression.microsoft.com/en-us/cc197141.
0 Kudos
DenisT
by
Deactivated User
Thank you.

In that tutorials they create a custom/templated or user control in Blend and then apply some properties or edit templates.
But a symbol is not a framework element. You can't just add a marker/line/fill symbol to a canvas or a grid and edit it, right?
So, are there any best practices or something?
0 Kudos
JenniferNery
Esri Regular Contributor
You can look at the XAML-code for the custom symbols here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols or here: http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm. You will find that the Symbol.ControlTemplate includes FrameworkElements (Rectangle, Ellipse, etc.). You can control their properties using VisualState to provide animation. ExpressionBlend makes this part easy. Once you find the template you think works for you, you can update your Symbol.ControlTemplate section.
0 Kudos
DenisT
by
Deactivated User
So, I have to create a temporary UserControl, configure it in Blend, then copy a result (UserControl's content) to the symbol's ControlTemplate.
And if I want to modify an existing symbol, I have to copy a symbol's ControlTemplate to the temporary UserControl.
Right?
0 Kudos