Push Notifications in Windows 8: Listing 3

MainWindow.xaml Markup

<Window x:Class="VSMWnsPushNotifier.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="413" Width="543">
    <Grid>
        <StackPanel>
            <Label>WNS URI</Label>
            <TextBox Name="PushUri"></TextBox>
            <Label>Secret Key</Label>
            <PasswordBox Name="SecretKey"></PasswordBox>
            <Label>SID</Label>
            <PasswordBox Name="Sid"></PasswordBox>
            <Label>Message</Label>
            <TextBox Name="Message"></TextBox>
            <Label>Image Source</Label>
            <TextBox Name="ImageSource"></TextBox>
            <Label>Notification Type</Label>
            <ComboBox Name="PushType">
            </ComboBox>
            <Button Name="Notify" Click="Notify_Click">Notify</Button>
            <Label>Status</Label>
            <Label Name="Status"></Label>
        </StackPanel>
    </Grid>
</Window>

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

  • Java on Visual Studio Code Going Cloud Native

    Cloud-native development figures prominently in a new roadmap published by Microsoft's Java on Visual Studio Code dev team.

  • Speed Lines Graphic

    Quantum-Inspired Annealing Using C# or Python

    Dr. James McCaffrey of Microsoft Research explains a new idea that slightly modifies standard simulated annealing by borrowing ideas from quantum mechanics.

  • Visual Studio 2022 v17.1 Preview 3 Improves Web Tools

    Microsoft quietly shipped Visual Studio 2022 v17.1 Preview 3 with enhancements to web tools.

  • Progress Telerik Adds 20-Plus Components for Blazor, .NET MAUI and WinUI

    The R1 2022 release of Progress Telerik development tooling adds more than 20 new components to the Blazor, .NET MAUI and WinUI offerings.

Upcoming Events