I have some vector graphic files in XAML format and I would like to use them as icons/buttons in an Silverlight application. The approach I would have preferred is to use an Image control and set its source property to the .xaml file, much like I can use a regular bitmap image.
But its not that easy and I have tried to include them as ControlTemplates in resource dictionary's and I even tried to create a custom control that would load the Xaml dynamically but I wasn't really pleased with the result, since I needed to wrap them in ViewBox controls to allow dynamic size etc.
So my questions is if any one has any best practice advices how to best use my xaml icons? I could copy-paste the xaml when needed but I really dont like that approach.
Thanks in advance.