I have UserControl that includes several rectangles:
<StackPanel>
<Rectangle Height="70" Width="100" x:Name="Image1" />
<Rectangle Height="70" Width="100" x:Name="Image2" />
<Rectangle Height="70" Width="100" x:Name="Image3" />
</StackPanel>
How can I create various number of rectangles via data binding and set rectangles width and height (and other properties) instead of this static hardcode approach?
Thank you in advance!