Header Template

4 posts, 2 answers
  1. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 10 Sep 2010 Link to this post

    Hi
    Couple of questions if possible.

    1. Given the example below, how can I template the RadTileViewItem Header so the button is along side (right justified) the minimized button, so when the tile is either Large, Small or Normal the button will alway remain
    right justified

     
    <Grid.Resources
        <DataTemplate x:Key="TileViewItemHeaderTemplate"
            <StackPanel Orientation="Horizontal"
                <Button Click="Button_Click_1" VerticalAlignment="Center" Content="X"></Button
                <TextBlock Text="{Binding}" Margin="5" VerticalAlignment="Center" /> 
            </StackPanel
        </DataTemplate
    </Grid.Resources
        
        <telerikNavigation:RadTileView x:Name="RadTileView1"
            <telerikNavigation:RadTileViewItem Header="Item1" HeaderTemplate="{StaticResource TileViewItemHeaderTemplate}" ></telerikNavigation:RadTileViewItem
            <telerikNavigation:RadTileViewItem Header="Item2" HeaderTemplate="{StaticResource TileViewItemHeaderTemplate}"></telerikNavigation:RadTileViewItem
        </telerikNavigation:RadTileView>

    2. Can you style the Tile's intrinsic header Button

    Thanks

    P
  2. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 13 Sep 2010 Link to this post

    Hi Paul Gallen,

    If you want to achieve such functionality you have to edit the ControlTemplate of the RadTileViewItem, you can examine the attached sample project. In order to style the intrinsic button, you have to replace the RestoreIcon path element in the ControlTemplate with your custom path element.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Best wishes,
    Viktor Tsvetkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 14 Sep 2010 Link to this post

    Thanks Viktor

    This is exactly what I require. BTW; Is there any documentation in how your controls are templated?

    yes i will defiantly look at http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Thanks

    P
  5. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 14 Sep 2010 Link to this post

    Hello Paul Gallen,

    There is no such document with the templates, but whenever you want to get the default style of some control you can simply edit the style in Blend.

    Regards,
    Viktor Tsvetkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top