Hello
Is there a way in Expression Blend (or expr design etc.) to export the
selected Xaml as a reusable resource/style/component?
Basically I want to create a small collection of reusable icons / xaml
controls (no code behind) that I could reuse at various places/pages in my
silverlight app.
For eg. , if I have the following Xaml:
<Canvas Width="28.6" Height="22.85">
<Path Height="22.85" Width="18.46" Fill="#FFFFFFFF" Stretch="Fill"
Stroke="#FF004990"
StrokeThickness="4" Canvas.Left="11.23" Data="M93.54,4.15 C98.57,10.07
106.45,21.8 108,23.13"/>
<Path Height="4.4" Width="28.6" Fill="#FFFFFFFF" Stretch="Fill"
Stroke="#FF004990"
StrokeThickness="4" Canvas.Top="17.6" Data="M106.25,23.63 C103,22.5
84.87,24.48 81.64,23.36"/>
<Path Height="16.93" Width="12.24" Fill="#FFFFFFFF" Stretch="Fill"
Stroke="#FF004990"
StrokeThickness="4" Canvas.Left="2.07" Canvas.Top="4.46"
Data="M90.51,6.15 C88.55,8.65 89.3,9.03 82.29,19.07"/>
</Canvas>
And I want to convert it as a style so I could save it in my theme.xaml (or
save it as a separate mini xaml file and later include in theme)
I know I can convert it to a style manually by creating a style and using
<Setter Property="Blah" Value="Blah blah"/>
But I was kind of hoping I could select some xaml and right click -> save as
or export as resource / style??
Any ideas?
Or should I create it as a user control and set its Build Action = Resource?
Whats the best practice?
Related google search result:
http://stackoverflow.com/questions/839843/reuse-path-object-in-xaml/839937
Thanks
Soni
--------------------------------------------------------------------------------
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists