it is show how dxBrush is being created/descroyed in separate event handler.
It's a bit inconecnent while coding.
so, does the following way has any drawback (instead of doing like said in example):
...OnRender()
{
SharpDX.Direct2D1.Brush dxBrush = brushColor.ToDxBrush(RenderTarget);
RenderTarget.FillRectangle(new SharpDX.RectangleF(ChartPanel.X, ChartPanel.Y, ChartPanel.W, ChartPanel.H), dxBrush)
dxBrush.Dispose();
dxBrush = null;
}
is it worse then in the linked example?

Comment