StatusBar.xaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <UserControl x:Class="PLCIOPointTool.Views.StatusBar"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PLCIOPointTool.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. Width="580" Height="60"
  10. mc:Ignorable="d">
  11. <Grid Background="#FFCECECE">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="30"/>
  14. <RowDefinition Height="30"/>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="200"/>
  18. <ColumnDefinition Width="200"/>
  19. <ColumnDefinition Width="180"/>
  20. </Grid.ColumnDefinitions>
  21. <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
  22. <Label>AmsNetId:</Label>
  23. <TextBox Text="{Binding NetID}" IsEnabled="{Binding CanConnect}" Width="122" Height="20"/>
  24. </StackPanel>
  25. <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="33,0,0,0">
  26. <Label>Port:</Label>
  27. <TextBox Text="{Binding Port}" IsEnabled="{Binding CanConnect}" Width="80" Height="20"/>
  28. </StackPanel>
  29. <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"/>
  30. <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"/>
  31. <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  32. <Label>Status:</Label>
  33. <Label Content="{Binding Status}"></Label>
  34. </StackPanel>
  35. </Grid>
  36. </UserControl>