Changing the Foreground color of tabs on MouseOver

5 posts, 1 answers
  1. Shreedhar Kotekar
    Shreedhar Kotekar avatar
    4 posts
    Member since:
    Nov 2009

    Posted 02 Sep 2010 Link to this post

    I want to change the foreground color of the tabs when user mouse over them. I am talking about the RadPane and RadDocumentPane in particular. I don't know why changing the foreground color/brush has been made so unobvious & difficult while the background and border colors can be changed readily.

    I have been trying since last two days but with no luck. Any help in this regard will be greatly appreciated.

    Thanks
    Shreedhar
  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 03 Sep 2010 Link to this post

    Hello Shreedhar Kotekar,

    Thank you for contacting us.

    What you need is a custom theme. Please find attached the latest Telerik Office Blue theme included as a custom theme in the project. Please, search for the word "ADDED:" to find the customized spots.

    A MouseOver VisualState which animates the Pane Header foreground to Red has been added.

    I hope this helps. If you need further help, please let me know, we are ready to assist you.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Shreedhar Kotekar
    Shreedhar Kotekar avatar
    4 posts
    Member since:
    Nov 2009

    Posted 03 Sep 2010 Link to this post

    Great, your sample works and the same technique works in my app as well. Love you thanks.

    I have two followup questions

    1. Does the custom theme must be defined in a separate assembly?
    2. If I am just customizing the RadPane, do I still need create a copy of the entire style for RadDocking and change only required parts? can I not just edit a copy of style for RadPane or PaneHeader?


    Thanks a bunch.

    Shreedhar
  5. Shreedhar Kotekar
    Shreedhar Kotekar avatar
    4 posts
    Member since:
    Nov 2009

    Posted 03 Sep 2010 Link to this post

    I would also like to know how did you generate the initial "Generic.xaml" file with style of all of raddocking controls and its children and based it on office_blue theme? If you can give me the steps I need to follow to generate a similar "Generic.xaml" based on "Vista" theme how would I do it?

    I tried right clicking on the RadDock control and Edit Style > Edit Copy, but it did not create style of other controls like PaneHeader, ToolWindow etc. How did you do it?

    Thanks
    Shreedhar
  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Sep 2010 Link to this post

    Hello Shreedhar,

    Thank you for contacting us.

    Straight to the questions:

    1. You can define the custom theme as a style also. You can put it in a merged dictionary or in the same page as the Docking control.
    2. Yes, you can just change the required parts, but in that case you will have to put the theme as a Application resource.
    3. Once you become a customer you will receive the source code of our controls. When you build it, it will generate all xaml code for all themes.

    Hope this information helps. If you have further questions please let us know.

    All the best,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner