Getting Started

Adding the RadTileView to the page

In order to use RadTileView control in your projects you have to add references to the following assemblies:

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Navigation

You can find more info here.

Example 1

<UserControl x:Class="RadTileViewHelpExamples.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> 
    <Grid x:Name="LayoutRoot"> 
        <telerik:RadTileView> 
            <telerik:RadTileViewItem Header="Item1"> 
                <TextBlock Text="Item1 Content"/> 
            </telerik:RadTileViewItem> 
            <telerik:RadTileViewItem Header="Item2"> 
                <TextBlock Text="Item2 Content"/> 
            </telerik:RadTileViewItem> 
            <telerik:RadTileViewItem Header="Item3" > 
                <TextBlock Text="Item3 Content"/> 
            </telerik:RadTileViewItem> 
        </telerik:RadTileView> 
    </Grid> 
</UserControl> 
As you can see from the image below the items are in restored state by default.

Setting maximized item

To set an item in maximized state you can use the TileState property and set its value to Maximized.

Example 2

<telerik:RadTileView> 
    <telerik:RadTileViewItem TileState="Maximized" Header="Item1"> 
        <TextBlock Text="Item1 Content"/> 
    </telerik:RadTileViewItem> 
    <telerik:RadTileViewItem Header="Item2"> 
        <TextBlock Text="Item2 Content"/> 
    </telerik:RadTileViewItem> 
    <telerik:RadTileViewItem Header="Item3" > 
        <TextBlock Text="Item3 Content"/> 
    </telerik:RadTileViewItem> 
</telerik:RadTileView> 
As you can see from the image below Item1 is now in maximized state.

Setting minimized position

To set the minimized area positions use the MinimizedItemsPosition property. It is an enumeration with the following values:

  • Left
  • Top
  • Right
  • Bottom

Example 3

<telerik:RadTileView MinimizedItemsPosition="Bottom"> 
    <telerik:RadTileViewItem TileState="Maximized" Header="Item1"> 
        <TextBlock Text="Item1 Content"/> 
    </telerik:RadTileViewItem> 
    <telerik:RadTileViewItem Header="Item2"> 
        <TextBlock Text="Item2 Content"/> 
    </telerik:RadTileViewItem> 
    <telerik:RadTileViewItem Header="Item3" > 
        <TextBlock Text="Item3 Content"/> 
    </telerik:RadTileViewItem> 
</telerik:RadTileView> 

Figure 1

Tile View - minimized items position

Setting a Theme

The controls from our suite support different themes. You can see how to apply a theme different than the default one in the Setting a Theme help article.

Changing the theme using implicit styles will affect all controls that have styles defined in the merged resource dictionaries. This is applicable only for the controls in the scope in which the resources are merged.

To change the theme, you can follow the steps below:

  • Choose between the themes and add reference to the corresponding theme assembly (ex: Telerik.Windows.Themes.Windows8.dll). You can see the different themes applied in the Theming examples from our Silverlight Controls Examples application.

  • Merge the ResourceDictionaries with the namespace required for the controls that you are using from the theme assembly. For the RadTileView, you will need to merge the following resources:

    • Telerik.Windows.Controls
    • Telerik.Windows.Controls.Navigation

Example 4 demonstrates how to merge the ResourceDictionaries so that they are applied globally for the entire application.

Example 4: Merge the ResourceDictionaries

<Application.Resources> 
    <ResourceDictionary> 
        <ResourceDictionary.MergedDictionaries> 
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/> 
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/> 
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/> 
        </ResourceDictionary.MergedDictionaries> 
    </ResourceDictionary> 
</Application.Resources> 

Alternatively, you can use the theme of the control via the StyleManager.

Figure 2 shows a RadTileView with the Windows8 theme applied.

Figure 2: RadTileView with the Windows8 theme

RadTileView with Windows8 theme

See Also

In this article
Not finding the help you need? Improve this article