In this step you'll begin in Visual Studio to create an application using Tiles for UWP. In this step you'll create a Universal Windows application and add a C1TileListBox to contain the Tiles for UWP controls. To begin, complete the following steps:
The MainPage.xaml page will open.
Markup Copy Code <Page.Resources> <Style x:Key="listBoxItemStyle" TargetType="Xaml:C1ListBoxItem"> <Setter Property="Tile:C1TileService.PointerDownAnimation" Value="True"/> </Style> <Style TargetType="Tile: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="Tile:C1Tile" BasedOn="{StaticResource baseTileStyle}"> </Style> <Style TargetType="Tile:C1SlideTile" BasedOn="{StaticResource baseTileStyle}"> </Style> <Style TargetType="Tile:C1FlipTile" BasedOn="{StaticResource baseTileStyle}"> </Style> </Page.Resources>
This markup adds page resources to style the appearance of the application.
Markup Copy Code<Xaml:C1TileListBox ItemStyle="{StaticResource listBoxItemStyle}"> <Xaml:C1TileListBox.Items> </Xaml:C1TileListBox.Items> </Xaml:C1TileListBox>
In this step you created a Universal Windows application. In the next step you'll add Tiles for UWP controls to the application.