git.haldean.org tau / master Tau / MainWindow.xaml
master

Tree @master (Download .tar.gz)

MainWindow.xaml @masterraw · history · blame

<Window x:Class="Tau.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Tau"
        mc:Ignorable="d"
        FocusManager.FocusedElement="{Binding ElementName=Input}"
        Title="" Height="338.621" Width="224.735"
        Icon="icon.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <ListBox Name="Output" Margin="10" Grid.Row="0" BorderBrush="{x:Null}" Background="{x:Null}" SelectionChanged="SelectRegister" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Name="Name" Margin="0,0,10,0" FontFamily="PragmataPro" FontSize="20" Text="{Binding Name, Mode=OneWay}" Foreground="#FF7799CC" MinWidth="30"/>
                        <TextBlock Name="Value" FontFamily="PragmataPro" FontSize="20" Text="{Binding Value, Mode=OneWay, StringFormat=g8}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <TextBlock Name="Help" FontFamily="PragmataPro" FontSize="10" VerticalAlignment="Bottom" Grid.Row="1" Margin="10,0" TextWrapping="Wrap" Foreground="#FF7799CC"/>
        <TextBox Name="Input" Margin="10,0,10,10" TextWrapping="Wrap" VerticalAlignment="Bottom" FontFamily="PragmataPro" FontSize="20" KeyUp="InputKey" Grid.Row="2" BorderBrush="{x:Null}" Background="{x:Null}"/>
    </Grid>
</Window>