Cannot modify RadForm in Visual Style Builder

5 posts, 0 answers
  1. BK
    BK avatar
    3 posts
    Member since:
    Dec 2009

    Posted 20 Dec 2009 Link to this post

    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).
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 21 Dec 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. BK
    BK avatar
    3 posts
    Member since:
    Dec 2009

    Posted 21 Dec 2009 Link to this post

    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.
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Dec 2009 Link to this post

    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.
  6. BK
    BK avatar
    3 posts
    Member since:
    Dec 2009

    Posted 21 Dec 2009 Link to this post

    Hi Nikolay,

    Thank you! It works!

    Sincerely,
    Prapun
Back to Top
UI for WinForms is Visual Studio 2017 Ready