<UserControl x:Class="AlarmInfoServerSim.Views.WorkArea"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:AlarmInfoServerSim.Views"
             xmlns:prism="http://prismlibrary.com/"
             prism:ViewModelLocator.AutoWireViewModel="True"
             Width="600" Height="350"
             mc:Ignorable="d">
    <Grid Background="#FFCECECE" Margin="5,0,5,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300" />
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0" Orientation="Vertical" Margin="5,10,0,10">
                <Label HorizontalAlignment="Right">Mini8:</Label>
                <Label HorizontalAlignment="Right">Channel:</Label>
                <Label HorizontalAlignment="Right">Alarm Type:</Label>
                <Label HorizontalAlignment="Right">PV:</Label>
                <Label HorizontalAlignment="Right">Caps:</Label>
                <Label HorizontalAlignment="Right">Floor:</Label>
            </StackPanel>
            <StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,10,5,10">
                <ComboBox Width="120" SelectedIndex="{Binding SelectedMini8Index}" ItemsSource="{Binding Mini8}" DisplayMemberPath="Value.Name" HorizontalAlignment="Left" Margin="0,3,0,0"/>
                <ComboBox Width="120" SelectedIndex="{Binding SelectedChannelIndex}" ItemsSource="{Binding Mini8Channel}" DisplayMemberPath="Value.Name" HorizontalAlignment="Left" Margin="0,5,0,0"/>
                <ComboBox Width="120" SelectedIndex="{Binding SelectedAlarmTypeIndex}" ItemsSource="{Binding AlarmTypes}" HorizontalAlignment="Left" Margin="0,5,0,0"/>
                <TextBox Width="80" Text="{Binding PV}" HorizontalAlignment="Left" Margin="0,6,0,0"></TextBox>
                <TextBox Width="80" Text="{Binding Caps}" HorizontalAlignment="Left" Margin="0,6,0,0"></TextBox>
                <TextBox Width="80" Text="{Binding Floor}" HorizontalAlignment="Left" Margin="0,8,0,0"></TextBox>
                <Button Content="Send" Command="{Binding SendInfoCommand}" Margin="0,20,0,0" Width="120" HorizontalAlignment="Left"/>
            </StackPanel>
        </Grid>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Label Grid.Row="0">Received Data:</Label>
            <ListView Grid.Row="1" MaxHeight="310" ItemsSource="{Binding ReceivingTime}"/>
        </Grid>
    </Grid>
</UserControl>
