StatusBar.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="AlarmInfoServerSim.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:AlarmInfoServerSim.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. Width="600" Height="45"
  10. mc:Ignorable="d">
  11. <Grid Background="#FFCECECE" Margin="5,0,5,0">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="200"/>
  15. <ColumnDefinition Width="*"/>
  16. </Grid.ColumnDefinitions>
  17. <StackPanel Grid.Column="0" Orientation="Horizontal">
  18. <Label VerticalAlignment="Center" HorizontalAlignment="Center">Status: </Label>
  19. <Label Content="{Binding Status}" HorizontalAlignment="Center" VerticalAlignment="Center"></Label>
  20. </StackPanel>
  21. <StackPanel Grid.Column="1" Orientation="Horizontal">
  22. <Label HorizontalAlignment="Center" VerticalAlignment="Center">Remote IP:</Label>
  23. <Label Content="{Binding RemoteIp}" HorizontalAlignment="Center" VerticalAlignment="Center"></Label>
  24. </StackPanel>
  25. <StackPanel Grid.Column="2" Orientation="Horizontal">
  26. <Label HorizontalAlignment="Center" VerticalAlignment="Center">Remote Port:</Label>
  27. <Label Content="{Binding RemotePort}" HorizontalAlignment="Center" VerticalAlignment="Center"></Label>
  28. </StackPanel>
  29. </Grid>
  30. </UserControl>