❔ Binding Xaml
Hey, i want to bind the color of the GradientStop on the BorderBrush parameter of the button, but it doesn't work..Can you help me?
7 Replies
You can use {TemplateBinding BorderBrush}
Doesnt work
You should match binding properties.
Consider differences between Brushes and Colors.
How can i do this?
<GradientStop Offset="{Binding Path=OffsetProgress, RelativeSource={RelativeSource Mode=TemplatedParent}}" Color="{Binding Path=Background.Color, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
Thanks
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.