views:

1139

answers:

1

I have a vector image that I've defined in XAML. What is the proper way to use this resource in a WPF application?

I want to have the vector image in its own XAML file, and then add the image to other UserControls in my application. What should be the top-level element in my XAML vector image? How do I refer to that image in other UserControls?

A: 

http://learnwpf.com/Posts/Post.aspx?postId=d849072b-4e45-4ad4-b28c-71341ea30d46 explains how to do it.

<ContentControl Template="{StaticResource Credit-Card}" />
Lars Truijens