You can use the explanation that Pavel
provided in his previous posts stating that RadPanelBar is like RadTreeView - the ItemHeader
is actually a RadPanelBarItem with custom style applied. And its child Items are also RadPanelBarItems with another style applied. Having this in mind you can apply implicit style that targets RadPanelBarItem that will apply on all items. To distinguish those that are second level items (children of root items) you can apply ItemContainerStyle
to the HierarchicalDataTemplate
again with TargetType RadPanelBarItem. I attached a modified version of Pavel's
sample to demonstrate how you might apply two different Foreground-s on root and child items based on the styles I described.
P.S. Please add reference to NoXAML binaries to run the sample and don't forget to reference Telerik.Windows.Themes.OfficeBlack assembly as well. You might read more about the separation of XAML and NoXAML binaries and why we ship them in this help article.
I hope this information helps.
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?
Telerik Feedback Portal
and vote to affect the priority of the items