protected override void OnBarUpdate()
...
double opacity = .25
if(trendUP)
{
BackBrush = BgColorUp;
Brush newBrush = BackBrush.Clone();
newBrush.Opacity = opacity;
newBrush.Freeze();
BackBrush = newBrush;
}
else if(trendDOWN)
{
BackBrush = BgColorDown;
Brush newBrush = BackBrush.Clone();
newBrush.Opacity = opacity;
newBrush.Freeze();
BackBrush = newBrush;
}
Comment