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

Custom Row Layout with themed background

2 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 07 Apr 2011, 01:36 AM
Trying to figure out how, in my ControlTemplate for a custom row layout, inherit the default background for the current theme. I have a border, so I'd imagine somehow I can do a StaticResource lookup to find the properties to apply to the border?

Oh, as part of this, I'd like to also figure out how to make the row selectable like normal. And have the selection colors flow to my custom layout, too.

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Apr 2011, 11:56 AM
Hi Jerome,

 

Regarding our theming mechanism when you create something "custom", you cannot expect to directly inherit the default background of the row within custom defined row layout, because the theme internally is not aware of this custom layout. You need to implement it by your side. Thinking in this way, if you need to provide some selection follow the approach demonstrated in the following thread. The same is valid for WPF as well.



Best wishes,
Vanya Pavlova
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
0
Jerome
Top achievements
Rank 1
answered on 07 Apr 2011, 03:11 PM
That's silly. I'd think there'd at least be a way to grab hold of the brushes for the current theme.
Tags
GridView
Asked by
Jerome
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Jerome
Top achievements
Rank 1
Share this question
or