ViewSmith and ViewXY LegendBox different behaviour
Posted: Mon Apr 03, 2017 9:29 pm
Hi,
I have the following code for both the ViewXY and ViewSmith Legend box.
Now, when I keep my mouse on top of the series title in ViewXY legend box, it highlights to Yellow. But when I keep my mouse on top of the series title in ViewSmith legend box, it doesn't change the color. Is there some other property in the ViewSmith legend box that I have to set, so just the title color in legend box changes to the highlighted color?
I have the following code for both the ViewXY and ViewSmith Legend box.
Code: Select all
chart.ViewSmith.LegendBox.BorderColor = System.Drawing.Color.FromArgb(40, 255, 255, 255);
chart.ViewSmith.LegendBox.Fill.BitmapSmoothing = BitmapSmoothing.None;
chart.ViewSmith.LegendBox.Fill.Color = System.Drawing.Color.FromArgb(180, 30, 30, 33);
chart.ViewSmith.LegendBox.Fill.GradientColor = System.Drawing.Color.FromArgb(180, 30, 30, 33);
chart.ViewSmith.LegendBox.Fill.GradientFill = GradientFill.Solid;
chart.ViewSmith.LegendBox.Fill.Style = RectFillStyle.ColorOnly;
chart.ViewSmith.LegendBox.Layout = LegendBoxLayout.VerticalColumnSpan;
chart.ViewSmith.LegendBox.Position = LegendBoxPosition.TopRight;
chart.ViewSmith.LegendBox.UseSeriesTitlesColors = true;
chart.ViewSmith.LegendBox.Offset.X = -75;
chart.ViewSmith.LegendBox.Offset.Y = 30;
chart.ViewSmith.LegendBox.ShowIcons = false;
chart.ViewSmith.LegendBox.MouseHighlight = MouseOverHighlight.None;
chart.ViewSmith.LegendBox.HighlightSeriesOnTitle = true;