Color.Transparent: A=0,R=0,G=0,B=0
solidColorBrush.Color.Transparent: A=0,R=1,G=1,B=1;
to check it paste the following into copy of the @CandleStyle below line 69 (where candle brush is defined):
SolidColorBrush solidColorBrush = (SolidColorBrush) brush; Print("Transparent Brush: "+solidColorBrush.Color.ToString()); Print("Transparent Color: "+Color.Transparent.ToString()); if (solidColorBrush.Color == Color.Transparent) Print("Color transparent comparison correct"); if (solidColorBrush.Color.Alpha == 0) Print("Color alpha comparison correct");
As a workaround I use alpha comparison but it looks like a bug in SharpDX implementation you should look into.
Comment