I'm not so sure what is the best way to handle
VECTOR Image resources in WPF/XAML world...
my vector drawings are packed in Viewbox, but the Image itself has a XAML name, like e.g.:
<Viewbox Stretch="Uniform" Width="100" Height="100" >
<Image x:Name="ShapeNodeImg" Height="132" Width="226">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ... here follows the Geometry etc
but the Image property of ShapeNode needs ImageSource.
Any idea how to instantiate/use a number of such vector geomery (guess DrawingImage) resources?
Ideally (or shortest) would be if we could assign the Image direct in XAML to the DiagramNodes, sort of:
<diag:Diagram.Nodes >
<diag:ShapeNode Name="Start" Bounds="20,35,150,80"
Image="ShapeNodeImg" Text="Start" TextAlignment="Center" />
?