ApplicationButton Content (text) Color

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    11 posts
    Member since:
    May 2012

    Posted 21 May 2013 Link to this post

    I'm using Expression Blend and I'm editing my ApplicationButtonStyle.  I cannot figure out how to change the color of the text inside the Grid that contains the ContentPresenter, TextBlock, and Image.  Changing the Background/Foreground colors in TextBlock or ContentPresenter doesn't work.  What I'm trying to do is have my ApplicationButton tab look the same as a RadRibbonTab, but I can't figure out the Context (or text) color part.
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 22 May 2013 Link to this post

    Hi Kevin,

    Once you edit the default style of the RibbonView ApplicationButton, you can apply a Foreground setter. This setter will control the foreground of the content inside the button. Next, you can change the value of the Background setter - this value is applied to the inner Border element that represents the background of the ApplicaitonButton. And you can further customize the settings of the outer and inner Border elements (the first elements in the root Grid of the ControlTemplate) to create a RibbonTab-like style.

    I attached a sample solution where I slightly modified the RibbonView ApplicationButton style so that now the button resembles a selected RibbonTab. Please have a look at the solution and let me know if it helps.

    Tina Stancheva

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top