Hello,
I'm trying to use use the ContentTemplateSelector propriety inside a RadPane this way :
But this don't work. On the other hand, those lines work just fine :
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
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