internal Dictionary<string, DxMediaMap> dxmBrushes;
dxmBrushes = new Dictionary<string, DxMediaMap>();
foreach (string brushName in new string[] { "TestBrush" })
{
dxmBrushes.Add(brushName, new DxMediaMap());
}
[XmlIgnore]
[Display(ResourceType = typeof(Resource), Order = 0, GroupName = "TestBrush", Name = "TestBrush", Description = "")]
public Brush SellPriceLadderAreaBrush
{
get { return dxmBrushes["TestBrush"].MediaBrush; }
set
{
dxmBrushes["TestBrush"].MediaBrush = value;
//with the opacity property the call works as desired
if (ChartControl != null)
{
ChartControl.Dispatcher.InvokeAsync(() => ChartControl.InvalidateVisual());
}
}
}
as you can see very well in the video, the brush is only updated after the chart has the focus again, and it has been moved. With the opacity property, this happens immediately and without the chart having the focus or being moved. What can I do to make the brush change color immediately?

Comment