I was wondering if there is a way to programmatically change a stopgradient color specified in XAML. For example:
'<'Rectangle Width="1280" Height="1024">
'<'Rectangle.Fill>
'<'LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
'<'GradientStop Color="Black" Offset="0.0" />
'<'GradientStop Color="White" Offset="0.25" />
'<'/LinearGradientBrush>
'<'/Rectangle.Fill>
'<'/Rectangle>
When I click a button on my screen I want to change the "black" gradientstop to "red". Any suggestions