Hello.
I try to put a drawing with each item of a collection. The drawing depend on a property of the binded item.
I know how to do this with png files : I use a converter that transform property value to resource path, and use a clause that bind it : Source="{Binding property1, Converter={StaticResource converter1}}"
But I have no idea how to do this with vector graphics.
I added a resource dictionary to the project, I created some svg with inkscape, and converted it to xaml. I added the xaml text into the resource dictionary file (each item is a viewbox with a unique x:Key, and canvas inside)
I tried to use ContentControl, ControlPresenter, bind content with some kind of Content="{Binding ...}", without success.
The idea behind is the ability to dynamicly load another dictionary to replace the drawings set without effort, and updating depending windows.
Could someone help ?