Is there any way to dynamically bind the resource style of a rectangle ?
The following works:
<Rectangle Grid.ColumnSpan="4" Margin="0,0,0,8" Fill="{Binding RectangleColor}" />
So each list item has a different color based on its type.
The problem is that i don't like simple colors and i would like them to follow a style resource. Unfortunately this has to be done dynamically.
Trying this didnt work:
<Rectangle Grid.ColumnSpan="4" Margin="0,0,0,8" Style="{Binding RectangleStyle}" />