I have this block of xaml and I made a ViewModel which contains a property called MyBrush. I would like to set the grid background to that property but this block doesn't work. Could you tell me how can I do that?
<Style x:Key="myKey" TargetType="myType">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="myType">
<Grid Background="{Binding RelativeSource={RelativeSource Self},
Path=MyBrush}">
...