HI,
1. I have a ResourceDictionary with two Styles for GridViewHeaderCell - one is with x:Key="MyKeyedStyle" and the other has only TargetType definition.
2. The style with the key (MyKeyedStyle) is effectively BasedOn my "default" style and has a different implementation of the "Template" property (adding a border for color coding).
3. The "default" style in defined before the keyed style.
4. In GridViewDataColumn tag, I've added: HeaderCellStyle="{DynamicResource MyKeyedStyle}" (also, tried: HeaderCellStyle="{StaticResource MyKeyedStyle}")
At run-time the keyed style (MyKeyedStyle) is not applied to HeaderCell, only the "default" one is applied.
When I remove the default style everything works as expected, only I get Telerik's default colors.
Please help, how do I make a default style and another keyed one to work together?
(for some reason, I can't attach a zipped solution to this post (changed file type to *.zip.png). It's size is 26KB but I get "Please upload valid files: .gif,.jpg,.jpeg,.png smaller than 2MB." error when posting....)
TIA,-
Noam
1. I have a ResourceDictionary with two Styles for GridViewHeaderCell - one is with x:Key="MyKeyedStyle" and the other has only TargetType definition.
2. The style with the key (MyKeyedStyle) is effectively BasedOn my "default" style and has a different implementation of the "Template" property (adding a border for color coding).
3. The "default" style in defined before the keyed style.
4. In GridViewDataColumn tag, I've added: HeaderCellStyle="{DynamicResource MyKeyedStyle}" (also, tried: HeaderCellStyle="{StaticResource MyKeyedStyle}")
At run-time the keyed style (MyKeyedStyle) is not applied to HeaderCell, only the "default" one is applied.
When I remove the default style everything works as expected, only I get Telerik's default colors.
Please help, how do I make a default style and another keyed one to work together?
(for some reason, I can't attach a zipped solution to this post (changed file type to *.zip.png). It's size is 26KB but I get "Please upload valid files: .gif,.jpg,.jpeg,.png smaller than 2MB." error when posting....)
TIA,-
Noam