Windows Dev Center

Language: HTML | XAML

Text tile (list folder) template (XAML)

Use this item template with a GridView to display a folder list with a tile and text.

Tile grid for a folder list

This example shows the image gallery DataTemplate and a GridView that uses the template.

<DataTemplate x:Key="TextTileListFolderTemplate"> 
    <Grid Background="DarkGray" Width="300" Height="70">        
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom"> 
            <TextBlock Text="Ay Lorem ipsum dolor " 
                       FontSize="16"  Margin="10,0,0,10" 
                       TextTrimming="WordEllipsis" HorizontalAlignment="Left" />                        

<GridView x:Name="TextTileListFolderGrid" 
          VerticalAlignment="Stretch" HorizontalAlignment="Left" 
          CanReorderItems="True" CanDragItems="True" 
          ItemTemplate="{StaticResource TextTileListFolderTemplate}">                        
            <ItemsWrapGrid MaximumRowsOrColumns="6"/>                      



© 2015 Microsoft