This is a migrated thread and some comments may be shown as answers.

Header Template

3 Answers 202 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 10 Sep 2010, 04:02 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tsvetkov
Telerik team
answered on 13 Sep 2010, 09:24 AM
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
0
Paul Gallen
Top achievements
Rank 1
answered on 14 Sep 2010, 09:54 AM
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
0
Accepted
Viktor Tsvetkov
Telerik team
answered on 14 Sep 2010, 11:34 AM
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
Tags
TileView
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Paul Gallen
Top achievements
Rank 1
Share this question
or