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

Cannot modify RadForm in Visual Style Builder

4 Answers 115 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
BK
Top achievements
Rank 1
BK asked on 20 Dec 2009, 10:21 AM
I cannot modify Radform in Visual Style Builder. It always shows blue theme. I tried to load predefined theme(Desert) and it did not change either. I want to modify title bar and system buttons(min, max, close).

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 21 Dec 2009, 08:39 AM
Hi Prapun,

Thanks for contacting us and for your question. When modifying RadForm in Visual Style Builder tool, you should keep in mind that the theme of the title bar area should be separately edited. To do this you should load RadTitleBar in Visual Style Builder and style it accordingly. You can read more on how to style RadForm here:


Styling RadForm

I hope this is helpful. You can write back anytime you need further assistance.

All the best,

Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
BK
Top achievements
Rank 1
answered on 21 Dec 2009, 09:55 AM
I already customized RadTitleBar before posted this issue. I can customize most of the components except RadForm. I changed RadTitleBar but RadForm did not change. I attached a picture of RadForm and RadTitleBar with the same ThemeName. They do not have the same style. Please give me some tips to make it works. I tried everything to make it works for 2 days and it still does not work.
0
Nikolay
Telerik team
answered on 21 Dec 2009, 02:13 PM
Hi BK,

After you create themes for both RadForm and RadTitleBar with one and the same ThemeName, open the xml theme file for the RadTitleBar and add the following stylesheet relation to the StylesheetRelations block:
<RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadForm" ElementType="Telerik.WinControls.UI.RadFormTitleBarElement" />

The result stylesheet relations block will be:
<StylesheetRelations>
    <RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadTitleBar" ElementType="Telerik.WinControls.RootRadElement" />
    <RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadForm" ElementType="Telerik.WinControls.UI.RadFormTitleBarElement" />
</StylesheetRelations>

This will allow you to use the style that you created for RadTitleBar in the RadFormTitleBarElement of RadForm.

I hope this helps. If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
BK
Top achievements
Rank 1
answered on 21 Dec 2009, 04:14 PM
Hi Nikolay,

Thank you! It works!

Sincerely,
Prapun
Tags
Themes and Visual Style Builder
Asked by
BK
Top achievements
Rank 1
Answers by
Deyan
Telerik team
BK
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or