RadFluidContentControl - Databinding from Viewmodel

2 posts, 0 answers
  1. Jack
    Jack avatar
    1 posts
    Member since:
    Nov 2015

    Posted 07 Nov 2015 Link to this post

    Hi,

     I'm using RadTileView and RadFluidContentControl to display small, normal and large views. For some reason the default normal view is displaying correctly but other 2 views are not displayed. Please see below code:

     

    <telerik:RadTileViewItem Header="​Test">

                            <telerik:RadFluidContentControl ContentChangeMode="Manual" 
                                                            State="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadTileViewItem}, Path=TileState, Converter={StaticResource FluidContentStateConverter}}">

                                       <telerik:RadFluidContentControl.SmallContent>
                                  
                                        <TextBlock Text="{Binding Path=textvalue}" />
                                </telerik:RadFluidContentControl.SmallContent>

                               
                                <telerik:RadFluidContentControl.Content>

                                    <TextBlock Text="{Binding Path=textvalue1}"  />
                                </telerik:RadFluidContentControl.Content>

                                 <telerik:RadFluidContentControl.LargeContent>
                                   
                                    <TextBlock Text="{Binding Path=textvalue2}" />

                                </telerik:RadFluidContentControl.LargeContent>

                            </telerik:RadFluidContentControl>

                        </telerik:RadTileViewItem>

     textvalue, textvalue1 and textvalue2 values are assigned in the viewmodel and it is used in the namespace:

     <UserControl

     d:DataContext="{d:DesignInstance viewModels:TestViewModel}"​

    ... />

     

    Could you help me why small and large contents are not displaying?

     

    Thanks


  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 11 Nov 2015 Link to this post

    Hello Jack,

    I am afraid that without your implementation I cannot be sure what is causing the described behavior. However, based on your code, I prepared a sample project demonstrating the desired effect. Please give it a try and let me know if I am missing something.

    Regards,
    Martin
    Telerik
    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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top