C
C#2y ago
palusi

❔ 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
fortune*
fortune*2y ago
You can use {TemplateBinding BorderBrush}
palusi
palusi2y ago
Doesnt work
fortune*
fortune*2y ago
You should match binding properties. Consider differences between Brushes and Colors.
palusi
palusi2y ago
How can i do this?
fortune*
fortune*2y ago
<GradientStop Offset="{Binding Path=OffsetProgress, RelativeSource={RelativeSource Mode=TemplatedParent}}" Color="{Binding Path=Background.Color, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
palusi
palusi2y ago
Thanks
Accord
Accord2y ago
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.