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

  • Get Good at DevOps: Feature Flag Deployments with ASP.NET WebAPI

    They provide developers with the ability to toggle features on and off without having to redeploy code, making it easier to manage risk, test features in production, and facilitate smoother releases.

  • Implementing k-NN Classification Using C#

    Dr. James McCaffrey of Microsoft Research presents a full demo of k-nearest neighbors classification on mixed numeric and categorical data. Compared to other classification techniques, k-NN is easy to implement, supports numeric and categorical predictor variables, and is highly interpretable.

  • Building Secure and Scalable APIs in .NET 8

    Tony Champion: "From giving you access to the entire lifecycle of a request, the ability to configure and extend authentication and authorization, .NET 8 gives you the power to create APIs to meet even the most demanding needs."

  • What's New for Java Tooling in VS Code, Azure Cloud

    Java on Visual Studio Code gets a new tool to its extension pack, while Java on Azure upgraded the Azure Toolkit for IntelliJ and more in new regular updates for both properties.

Subscribe on YouTube