Hi!
I have some problem with applying a style on a custom control derived from RadTreeListView.
This is the base style that works correctly on original RadTreeListView:
I create another style based on the previous style:
The CS code of my custom control:
If I run the application then my IPRRadTreeListView control doesn't become visible. I tried to apply the style explicitly ( Style = {StaticResource IprRadTreeListViewStyle} ) on my control but I had the same result: IPRRadTreeListView wasn't visible.
This scenario works correctly for IPRRadGridView (derived from RadGridView).
Could anbody help me, please?
I have some problem with applying a style on a custom control derived from RadTreeListView.
This is the base style that works correctly on original RadTreeListView:
<Style TargetType="{x:Type telerik:RadTreeListView}" x:Key="IprRadTreeListViewStyle" BasedOn="{StaticResource IPRBaseStyle}"> <Setter Property="ValidatesOnDataErrors" Value="None"/> <Setter Property="telerik:StyleManager.Theme" Value="Summer"/></Style>I create another style based on the previous style:
<Style TargetType="{x:Type controls:IPRRadTreeListView}" BasedOn="{StaticResource IprRadTreeListViewStyle}"></Style>The CS code of my custom control:
class IPRRadTreeListView : RadTreeListView { static IPRRadTreeListView() { DefaultStyleKeyProperty.OverrideMetadata(typeof(IPRRadTreeListView), new FrameworkPropertyMetadata(typeof(RadTreeListView))); } public IPRRadTreeListView() : base() { ... } ... }If I run the application then my IPRRadTreeListView control doesn't become visible. I tried to apply the style explicitly ( Style = {StaticResource IprRadTreeListViewStyle} ) on my control but I had the same result: IPRRadTreeListView wasn't visible.
This scenario works correctly for IPRRadGridView (derived from RadGridView).
Could anbody help me, please?