Option for different headers?

4 posts, 0 answers
  1. Shawn
    Shawn avatar
    39 posts
    Member since:
    Jul 2012

    Posted 04 Feb 2010 Link to this post

    Is there an option/way to display different headers based on the current expanded state of the window similar to what is currently done with the content? If not, this would be a great feature to add.

    Thanks,
    Shawn
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 05 Feb 2010 Link to this post

    Hello Shawn,

    You can use a FluidContentControl for the headers as well as the content - no problem about that. Simply put a FluidContentControl in the header of each tile and set the proper thresholds (or, alternatively, change the visible content manually when the tile state changes).

    Kind regards,
    Tihomir Petkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Shawn
    Shawn avatar
    39 posts
    Member since:
    Jul 2012

    Posted 07 Feb 2010 Link to this post

    I've tried doing what you described in several different ways but no matter what combination I did, the header content would never change. It was almost as if the RadFluidContentControl was looking for the header's size to change instead of the RadTileViewItem and therefore would never trigger.

    I was able to find a workaround for my problem by setting the header's RadFluidContentControl to Manual and binding the State to that of the primary content.

    Was there another/better way to do this?

    Thanks,
    Shawn

    <telerik:RadTileView MinimizedColumnWidth="150"
                <telerik:RadTileViewItem> 
                <telerik:RadTileViewItem.Header> 
                    <telerik:RadFluidContentControl ContentChangeMode="Manual" State="{Binding ElementName=PrimaryControl, Path=State}"
                        <telerik:RadFluidContentControl.SmallContent> 
                            <Label Content="Small Content"/> 
                        </telerik:RadFluidContentControl.SmallContent> 
                        <telerik:RadFluidContentControl.Content> 
                            <Label Content="Medium Content"/> 
                        </telerik:RadFluidContentControl.Content> 
                        <telerik:RadFluidContentControl.LargeContent> 
                            <Label Content="Large Content"/> 
                        </telerik:RadFluidContentControl.LargeContent> 
                    </telerik:RadFluidContentControl> 
                </telerik:RadTileViewItem.Header> 
                <telerik:RadFluidContentControl x:Name="PrimaryControl"
                        <telerik:RadFluidContentControl.SmallContent> 
                            <Label Content="Small Content"/> 
                        </telerik:RadFluidContentControl.SmallContent> 
                        <telerik:RadFluidContentControl.Content> 
                            <Label Content="Medium Content"/> 
                        </telerik:RadFluidContentControl.Content> 
                        <telerik:RadFluidContentControl.LargeContent> 
                            <Label Content="Large Content"/> 
                        </telerik:RadFluidContentControl.LargeContent> 
                        </telerik:RadFluidContentControl> 
                    </telerik:RadTileViewItem>
    ....

  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 10 Feb 2010 Link to this post

    Hello Shawn,

    The problem with the code snippet you sent is that you haven't set proper thresholds that would determine when the visible content of the FluidContentControl that is in the Content property of your TileViewItem (PrimaryControl) should be changed. If you set proper thresholds (this would be determined by the exact dimensions of your application) everything should be ok.

    Let me know how it goes.

    Sincerely yours,
    Tihomir Petkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top