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

Use ContentTemplateSelector With RadPane

1 Answer 107 Views
Docking
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Jun 2013, 07:54 PM
Hello,

I'm trying to use use the ContentTemplateSelector propriety inside a RadPane this way :

<selector:CTS x:Key="CTS" DataTemplate1="{StaticResource SomeThing}" DateTemplate2="{StaticResource SomeThing2}"></selector:CTS>
<telerik:RadPane x:Name="FiltersPane" ContentTemplateSelector="{StaticResource CTS}" Content="{Binding Data, Mode=TwoWay}" >

But this don't work. On the other hand, those lines work just fine : 

<DataTemplate x:Key="SomeThing">
            <vw:aView DataContext="{Binding}"></vw:aView>
</DataTemplate>
 
<telerik:RadPane x:Name="FiltersPane" ContentTemplate="{StaticResource SomeThing}" Content="{Binding Data, Mode=TwoWay}">

So, if I use ContentTemplateSelector, it doesn't work. But if I directly set one template with ContentTemplate, it works fine. So, basicaly, all I want to know is if this is the right way to do and the problem come from my code or if it just the way I'm using ContentTemplateSelector that is wrong.

Thank you,
David  

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 07 Jun 2013, 12:33 PM
Nevermind. I used a stackpanel instead and it works just fine
Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or