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

  • Green Motherboard Closeup Graphic

    How To Compute Transformer Architecture Model Accuracy

    Dr. James McCaffrey of Microsoft Research uses the Hugging Face library to simplify the implementation of NLP systems using Transformer Architecture (TA) models.

  • VS Code Snippets Leads Recent Open Source GA Announcements

    GitHub's "Release Radar" for November shows a Visual Studio Code snippets project leading a raft of open source offerings that reached general availability in November.

  • C# Language Server Revamps VS 2022 Razor Editor for ASP.NET Core

    Microsoft is touting new capabilities in ASP.NET Core web development in Visual Studio 2022 thanks to a new Razor editor powered by a Razor Language Server.

  • Windows Forms Lives On in .NET 6

    Windows Forms would like you to know that the reports of its death are greatly exaggerated.

Upcoming Events