Last Updated: 15 Mar 2018 11:27 by ADMIN
Created on: 08 Mar 2018 08:47
Category: UI for WinForms
Type: Feature Request
ADD. RadSpreadsheet - expose a ColorHelper class to convert System.Drawing.Color to System.Media.Color and ThemableColor
Workaround: create the ThemableColor this way

SetBordersCommandParameter bordersParam = new SetBordersCommandParameter();
System.Drawing.Color color = Color.Blue;
System.Windows.Media.Color mediaColor = System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B);
bordersParam.BorderColor = new ThemableColor(mediaColor);
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
Posted on: 13 Mar 2018 13:40
We can now use ColorHelper class to provide an easier way to create border colours out of the System.Drawing.Color. ColorHelper class that has methods for DColorToMColor, DrawingToThemableColor, MColorToDColor and ThemableToDrawingColor

Example of using the ColorHelper class to set a colour:
SetBordersCommandParameter bordersParam = new SetBordersCommandParameter();
bordersParam.OutsideBordersStyle = CellBorderStyle.Thin;
bordersParam.BorderColor = ColorHelper.DrawingToThemableColor(System.Drawing.Color.Blue);