Header Selected Item Transparent

4 posts, 0 answers
  1. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 02 Feb 2012 Link to this post

    Hello!

    I want to set the header of the selected item to transparent and remove all borders. Unfortunately I get "ViewModelId threw an exception", when I try to edit the template using Expression Blend. Is there a property for the background? Or can someone send me the default style?

    Thanks a lot,
    Tim.
  2. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 02 Feb 2012 Link to this post

    I think I found the solution for the transparent background: Background="{x:Null}"

     

  3. DevCraft banner
  4. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 02 Feb 2012 Link to this post

    I thought wrong! :( Header still solid...
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 Feb 2012 Link to this post

    Hello Tim,

    If you only want to make the background of a selected item transparent, then it would be best to edit the ControlTemplate of the RadOutlookBarItem. I am not sure why you experienced an exception, but if you can give us more details about your scenario, the definition of the RadOutlookBar and the RadControls version you use, we will further investigate the causes for the exception.

    In the meantime I attached a sample solution where I edited the default RadOutlookBarItem ControlTemplate to set a BorderThickness of 0 to the selected visual state elements as well as change the ControlItem_Background_Selected brush to Transparent. Please have a look at the solution and let me know if it helps.

    All the best,
    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top