Below, I Have these Resource i want to make binding on the third GradientStop to MyColor ,MyColor is DependencyProperty but in not working if i remove binding and put static Color "#ff000000" it is Working can some body help me???
<Grid.Resources>
<LinearGradientBrush x:Key="MyBrush" EndPoint="0, 1" StartPoint="0, 0">
<GradientStop Color="#00000000" Offset="1"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
<GradientStop Color="{Binding Path=MyColor}" Offset="0"/>
<!--#ff000000 -->
</LinearGradientBrush>
<Style x:Key="ThumbStyle" TargetType="{x:Type Thumb}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate >
<Rectangle StrokeThickness="1" StrokeDashCap="Round"
Stretch="Fill" Name="ThumbContnet" Fill="{StaticResource MyBrush}"></Rectangle>
<!---->
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
Regards Fadi AL Sayyed