Working with Advanced Live Tiles in Windows 8: Listing 2

BlankPage.xaml

<Page
    x:Class="VSMAdvancedTilesDemo.BlankPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:VSMAdvancedTilesDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
        <StackPanel>
            <TextBlock>TileId</TextBlock>
            <TextBox x:Name="TileId"></TextBox>
            <TextBlock>Message</TextBlock>
            <TextBox x:Name="Message"></TextBox>
            <Button x:Name="PinSecondaryTile" Click="PinSecondaryTile_Click">Pin Secondary Tile</Button>
            <Button x:Name="PushBadge" Click="PushBadge_Click">Push Badge Message</Button>
            <Button x:Name="PushTile" Click="PushTile_Click">Push Tile Message</Button>
            <Button x:Name="UnpinTile" Click="UnpinTile_Click">Unpin Secondary Tile</Button>
            <TextBlock x:Name="Status"></TextBlock>
        </StackPanel>
    </Grid>
</Page>

About the Author

Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].

comments powered by Disqus

Featured

Subscribe on YouTube