Hi guys
I'm trying to apply custom style on striplines via codebehind
That's working pretty much fine for BackgroundColor, Border Color, Border Thickness but i'm can't have opacity working
Here's my code ..
Is this a bug ? I'm doing something wrong ?
Thanks in advance,
Damien
I'm trying to apply custom style on striplines via codebehind
That's working pretty much fine for BackgroundColor, Border Color, Border Thickness but i'm can't have opacity working
Here's my code ..
Dim
tAxisYStripLineStyle
As
New
Style(
GetType
(Rectangle))
tAxisYStripLineStyle.Setters.Add(
New
Setter(Rectangle.FillProperty, pAxisYStripLines.StripBackgroundColor))
tAxisYStripLineStyle.Setters.Add(
New
Setter(Rectangle.StrokeThicknessProperty, pAxisYStripLines.StripThickness))
tAxisYStripLineStyle.Setters.Add(
New
Setter(Rectangle.StrokeProperty, pAxisYStripLines.StripBorderColor))
' Opacity does work, i've tried to convert to string .. same thing
tAxisYStripLineStyle.Setters.Add(
New
Setter(Rectangle.OpacityProperty, 0.3))
' Apply style to chart
_Chart.DefaultView.ChartArea.AxisY.AxisStyles.StripLineStyle = tAxisYStripLineStyle
Is this a bug ? I'm doing something wrong ?
Thanks in advance,
Damien