<phone:PhoneApplicationPage 
    x:Class="ScheduledTaskAgentSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="WINDOWS PHONE 7.5" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="ScheduledTaskAgent" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="48" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Border BorderBrush="Silver" BorderThickness="1" Height="307" HorizontalAlignment="Left" Name="brd_PeriodicTask" VerticalAlignment="Top" Width="456">
                <Grid>
                    <TextBlock FontSize="36" Height="51" HorizontalAlignment="Left" Margin="10,0,0,0" Name="textBlock1" Text="PeriodicTask" VerticalAlignment="Top" FontWeight="Bold" TextDecorations="Underline" />
                    <Button Content="Hinzufügen" Height="72" HorizontalAlignment="Left" Margin="45,227,0,0" Name="btn_PeriodicTask" VerticalAlignment="Top" Width="377" Click="btn_PeriodicTask_Click" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="11,57,0,0" Name="textBlock3" Text="Geplant:" VerticalAlignment="Top" Width="120" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="10,95,0,0" Name="textBlock4" Text="Auslaufzeitpunkt:" VerticalAlignment="Top" Width="155" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="10,133,0,0" Name="textBlock5" Text="Letzter Grund:" VerticalAlignment="Top" Width="120" />
                    <TextBlock Height="32" HorizontalAlignment="Right" Margin="0,95,6,0" Name="tbk_PTExpirationTime" Text=""  VerticalAlignment="Top" Width="265" TextAlignment="Right" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="183,57,0,0" Name="tbk_PTIsScheduled" Text="" VerticalAlignment="Top" Width="265" TextAlignment="Right" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="183,133,0,0" Name="tbk_PTLastExitReason" Text="" VerticalAlignment="Top" Width="265" TextAlignment="Right" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="11,171,0,0" Name="textBlock9" Text="Letzte Planzeit:" VerticalAlignment="Top" Width="129" />
                    <TextBlock Height="32" HorizontalAlignment="Left" Margin="183,171,0,0" Name="tbk_PTLastScheduledTime" Text="" VerticalAlignment="Top" Width="265" TextAlignment="Right" />
                </Grid>
            </Border>
        </Grid>
        <Border BorderBrush="Silver" BorderThickness="1" Height="314" HorizontalAlignment="Left" Margin="12,313,0,0" Name="brd_ResourceIntensiveTask" VerticalAlignment="Top" Width="455" Grid.Row="1">
            <Grid>
                <TextBlock FontSize="36" Height="51" HorizontalAlignment="Left" Margin="3,-1,0,0" Name="textBlock2" Text="ResourceIntensiveTask" VerticalAlignment="Top" TextDecorations="Underline" FontWeight="Bold" />
                <Button Content="Hinzufügen" Height="72" HorizontalAlignment="Left" Margin="37,234,0,0" Name="btn_ResourceIntensiveTask" VerticalAlignment="Top" Width="389" Click="btn_ResourceIntensiveTask_Click" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="10,61,0,0" Name="textBlock6" Text="Geplant:" VerticalAlignment="Top" Width="120" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="11,99,0,0" Name="textBlock7" Text="Auslaufzeitpunkt:" VerticalAlignment="Top" Width="155" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="11,137,0,0" Name="textBlock8" Text="Letzter Grund:" VerticalAlignment="Top" Width="120" />
                <TextBlock Height="32" HorizontalAlignment="Right" Margin="0,99,5,0" Name="tbk_RITExpirationTime" Text="" TextAlignment="Right" VerticalAlignment="Top" Width="265" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="183,61,0,0" Name="tbk_RITIsScheduled" Text="" TextAlignment="Right" VerticalAlignment="Top" Width="265" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="184,137,0,0" Name="tbk_RITLastExitReason" Text="" TextAlignment="Right" VerticalAlignment="Top" Width="265" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="11,175,0,0" Name="textBlock13" Text="Letzte Planzeit:" VerticalAlignment="Top" Width="129" />
                <TextBlock Height="32" HorizontalAlignment="Left" Margin="184,175,0,0" Name="tbk_RITLastScheduledTime" Text="" TextAlignment="Right" VerticalAlignment="Top" Width="265" />
            </Grid>
        </Border>
    </Grid>
</phone:PhoneApplicationPage>