StatusBar.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center">
  22. <Label>AMSID:</Label>
  23. <TextBox Text="{Binding NetID}" IsEnabled="{Binding IsInputEnable}" Width="130" Height="20"/>
  24. </StackPanel>
  25. <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" Margin="2,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center">
  26. <Label>Port:</Label>
  27. <TextBox Text="{Binding Port}" IsEnabled="{Binding IsInputEnable}" Width="80" Height="20"/>
  28. </StackPanel>
  29. <Button Content="{Binding ButtonContent}" Command="{Binding ConnectOrDisconnectCommand}" Grid.Row="0" Grid.Column="2" Height="20" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  30. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  31. <Label>Status:</Label>
  32. <Label Content="{Binding Status}"></Label>
  33. </StackPanel>
  34. </Grid>
  35. </UserControl>