This is a migrated thread and some comments may be shown as answers.

Adding hatch to skins

2 Answers 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Henry Derstine
Top achievements
Rank 1
Henry Derstine asked on 11 Oct 2012, 02:30 PM
I have chosen the Mac skin and added a hatch to the Series-->Appearance-->FillStyle. In Fill Settings I have made my MainColor White and left the SecondColor what the skin populated.
In the designer the changes look the way I want and expect however at runtime it reverts back to the skin without hatching.
See the two images for a better idea. I am suspecting the Skin is overiding any changes I am trying to make.
Is there a way to add a hatch to series when you use a skin?

Thanks for any help

2 Answers, 1 is accepted

Sort by
0
Henry Derstine
Top achievements
Rank 1
answered on 11 Oct 2012, 02:41 PM

Disregard-
If you modify the series fillstyle in the new of the codebehind you can override the Skin.
For example-

Me.Chart2.Series(0).Appearance.FillStyle.FillType = Charting.Styles.FillType.Hatch
Me.Chart2.Series(0).Appearance.FillStyle.MainColor = Color.White
Me.Chart2.Series(0).Appearance.FillStyle.FillSettings.HatchStyle = Drawing2D.HatchStyle.BackwardDiagonal

Does the trick.
Thanks

0
Accepted
Steve
Telerik team
answered on 11 Oct 2012, 02:42 PM
Hello Henry,

This is expected when you have skin applied. Should you need to modify a predefined skin of the chart, you should set the modifications in the report constructor after the InitializeComponent method:

chart1.Series[0].Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Hatch;
chart1.Series[0].Appearance.FillStyle.MainColor = System.Drawing.Color.White;

Kind regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Henry Derstine
Top achievements
Rank 1
Answers by
Henry Derstine
Top achievements
Rank 1
Steve
Telerik team
Share this question
or