MainPage.xaml 1.93 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<Page
    x:Class="AppTestUFRlib.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppTestUFRlib"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="D-Logic Tester for uFR library" Margin="0,0,0,605" TextAlignment="Center" HorizontalAlignment="Right" VerticalAlignment="Center" SelectionHighlightColor="#FF36434D" FontSize="24" Width="360" Height="35">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0"/>
                    <GradientStop Color="Red" Offset="1"/>
                </LinearGradientBrush>
            </TextBlock.Foreground>
        </TextBlock>
        <Button x:Name="bRdOpen" Content="Reader Open" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,40,0,0" Width="140" Click="bRdOpen_Click"/>
        <Button x:Name="bRdClose" Content="Reader Close" HorizontalAlignment="Left" Margin="180,40,0,0" VerticalAlignment="Top" Width="140" Click="bRdClose_Click"/>
        <Button x:Name="bRdInfo" Content="Reader Info" HorizontalAlignment="Left" Margin="20,120,0,0" VerticalAlignment="Top" Width="140" Click="bRdInfo_Click"/>
        <Button x:Name="bRdSignal" Content="Reader Signal" HorizontalAlignment="Left" Margin="20,160,0,0" VerticalAlignment="Top" Width="140" Click="bRdSignal_Click"/>

        <TextBox x:Name="txtOut" TextWrapping="Wrap" Text="" Margin="20,240,40,20"/>
        <Button x:Name="bRdCardID" Content="Get Card ID" HorizontalAlignment="Left" Margin="180,120,0,0" VerticalAlignment="Top" Width="140" Click="bRdCardID_Click"/>
    </Grid>
</Page>