I have the following requirement: I have modified styles taken from Implicit styles project, in order to achieve some custom appearance for TreeListView. When I run the application with this style, everything works fine. Next requirement is that I need to paint the background differently for each row based on some property value of item in collection.
And I have a TaskSelector which inherits from using System.Windows.Controls;StyleSelector. When I run the application, background is applied correctly, however I am loosing custom style that I made for RadTreeListView and RadTreeListViewItem. Next thing I tried is to add BasedOn attribute in above style, but then it doesn't paint the background (Setter Background doesn't do anything)..
So, how can I use style selector, set a background property, while preserving the custom made style for RadTreeListView and its sub elements.
<
RadTreeListView
RowStyleSelector
=
"{StaticResource TaskRowStyleSelector}"
/>
<
Style
x:Key
=
"PendingTreeListViewRowStyle"
TargetType
=
"telerik:TreeListViewRow"
>
<
Setter
Property
=
"Background"
Value
=
"#FFFFE1C4"
/>
</
Style
>
<
local:PersonRowStyleSelector
x:Key
=
"TaskRowStyleSelector"
PendingStyle
=
"{StaticResource PendingTreeListViewRowStyle}"
.../>
And I have a TaskSelector which inherits from using System.Windows.Controls;StyleSelector. When I run the application, background is applied correctly, however I am loosing custom style that I made for RadTreeListView and RadTreeListViewItem. Next thing I tried is to add BasedOn attribute in above style, but then it doesn't paint the background (Setter Background doesn't do anything)..
So, how can I use style selector, set a background property, while preserving the custom made style for RadTreeListView and its sub elements.