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

Header Selected Item Transparent

3 Answers 60 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 02 Feb 2012, 01:07 PM
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.

3 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 02 Feb 2012, 01:47 PM
I think I found the solution for the transparent background: Background="{x:Null}"

 

0
Tim
Top achievements
Rank 1
answered on 02 Feb 2012, 02:58 PM
I thought wrong! :( Header still solid...
0
Tina Stancheva
Telerik team
answered on 07 Feb 2012, 11:25 AM
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 >>
Tags
OutlookBar
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or