| Tiles for WinRT > Getting Started with WinRT Edition > Tiles for WinRT Quick Start > Step 1 of 3: Setting up the Tiles Application |
In this step you'll begin in Visual Studio to create an application using Tiles for WinRT. In this step you'll create a Windows Store application and add a C1TileListBox to contain the Tiles for WinRT controls. To begin, complete the following steps:
The MainPage.xaml page will open.
Markup Copy Code<Page.Resources> <Style x:Key="listBoxItemStyle" TargetType="c1:C1ListBoxItem"> <Setter Property="c1tile:C1TileService.PointerDownAnimation" Value="True"/> </Style> <Style TargetType="c1tile:C1Tile" x:Key="baseTileStyle"> <Setter Property="Background" Value="#FFC410" /> <Setter Property="Foreground" Value="White"/> <Setter Property="FontSize" Value="80"/> <Setter Property="HeaderForeground" Value="White"/> <Setter Property="HeaderFontSize" Value="12"/> <Setter Property="BorderThickness" Value="0" /> <Setter Property="Width" Value="280" /> <Setter Property="Height" Value="200" /> </Style> <Style TargetType="c1tile:C1Tile" BasedOn="{StaticResource baseTileStyle}"> </Style> <Style TargetType="c1tile:C1SlideTile" BasedOn="{StaticResource baseTileStyle}"> </Style> <Style TargetType="c1tile:C1FlipTile" BasedOn="{StaticResource baseTileStyle}"> </Style> </Page.Resources>
This markup adds page resources to style the appearance of the application.
Markup Copy Code<c1:C1TileListBox ItemStyle="{StaticResource listBoxItemStyle}"> <c1:C1TileListBox.Items> </c1:C1TileListBox.Items> </c1:C1TileListBox>
In this step you created a Windows Store application. In the next step you'll add Tiles for WinRT controls to the application.