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

Gradient effect on form's back color

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 11 Mar 2008, 10:32 AM
Can we have gradient color effect on form's back color?

Or theme for Telerik.WinControls.UI.ShapedForm ?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 14 Mar 2008, 08:28 AM
Hello Divyesh Chapaneri,

Currently, the ShapedForm class does not provide you with the functionality that will allow you to set a gradient color as a backcolor.

However, you still can achieve the desired results by using a RadPanel as a background on the form:
  1. Drag a RadPanel from the Toolbox to your Form.
  2. Set its Dock property to Fill.
  3. Click RadPanel's Smart Tag and choose Edit UI Elements from the menu.
  4. Navigate to FillPrimitive in the Control element structure tree and set BackColor, BackColor2 and BackColor3 to the various nuances of grey.

Note that if there are other controls on the Form, they should be children to the RadPanel, but not to the Form itself. This way they will stay on top and will not hide once you set the colors to the RadPanel.

I hope this helps. If you need additional assistance, do not hesitate to contact me.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or