Use ContentTemplateSelector With RadPane

2 posts, 0 answers
  1. David
    David avatar
    81 posts
    Member since:
    May 2011

    Posted 06 Jun 2013 Link to this post


    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>
    <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,
  2. David
    David avatar
    81 posts
    Member since:
    May 2011

    Posted 07 Jun 2013 Link to this post

    Nevermind. I used a stackpanel instead and it works just fine
  3. DevCraft banner
Back to Top