<UserControl x:Class="PLCIOPointTool.Views.StatusBar"
             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:PLCIOPointTool.Views"
             xmlns:prism="http://prismlibrary.com/"
             prism:ViewModelLocator.AutoWireViewModel="True"
             Width="580" Height="60"
             mc:Ignorable="d">
    <Grid Background="#FFCECECE">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="180"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
            <Label>AmsNetId:</Label>
            <TextBox Text="{Binding NetID}" IsEnabled="{Binding CanConnect}" Width="122" Height="20"/>
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="33,0,0,0">
            <Label>Port:</Label>
            <TextBox Text="{Binding Port}" IsEnabled="{Binding CanConnect}" Width="80" Height="20"/>
        </StackPanel>
        <Button Content="Connect" IsEnabled="{Binding CanConnect}" Command="{Binding ConnectCommand}" Grid.Row="0" Grid.Column="1" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#FF91FF73"/>
        <Button Content="Disconnect" IsEnabled="{Binding CanDisconnect}" Command="{Binding DisconnectCommand}" Grid.Row="1" Grid.Column="1" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#FFF74836"/>
        <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Label>Status:</Label>
            <Label Content="{Binding Status}"></Label>
        </StackPanel>
    </Grid>
</UserControl>
