Telerik UI for WinForms

The skins in RadChart are a set of predefined appearance properties. You can use the embedded skins by setting the RadChart.Skin property to a name of a skin. You can also set the property to Custom and use your own appearance settings.

Saving own skins

You can either start from existing skin and modify its properties or start from scratch. We recommend the first approach as easier to use.

Once you have set up your skin you can save it in a ChartSkin object using the CreateFromChart method. Then you can save this object to an XML file (which will be your skin).

When you want to reuse the skin, you need to create an instance of ChartSkin object, specifying the XML file as a source. Then you can apply the skin to the chart using the ApplyTo method.

CopyC#
//Save the XML Skin file...
ChartSkin myCustomSkin = new ChartSkin();
myCustomSkin.CreateFromChart(RadChart1.Chart, "CustomSkin");
//Restore the XML Skin file...
ChartSkin myCustomSkin1 = new ChartSkin(xmlSource);
myCustomSkin1.ApplyTo(RadChart1.Chart);
CopyVB.NET
'//Save the XML Skin file...
Dim myCustomSkin As New ChartSkin()
myCustomSkin.CreateFromChart(RadChart1.Chart, "CustomSkin")
'Restore the XML Skin file...
Dim myCustomSkin1 As New ChartSkin(xmlSource)
myCustomSkin1.ApplyTo(RadChart1.Chart)