MainWindow.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Window x:Class="EEMSCenterUI.Views.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:EEMSCenterUI"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. mc:Ignorable="d"
  10. WindowChrome.WindowChrome="{DynamicResource WindowChromeKey}"
  11. ResizeMode="CanMinimize" WindowStyle="SingleBorderWindow"
  12. Title="EEMS Server" Height="450" Width="800">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="auto"/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <StackPanel>
  19. <TextBox Text="{Binding Server.IP}"/>
  20. <TextBox Text="{Binding Server.Port}"/>
  21. <Button Command="{Binding StartServiceCommand}">Start Service</Button>
  22. <TextBox Text="{Binding GUID}"/>
  23. <Button Command="{Binding RequestFileCommand}">Request File</Button>
  24. <Button Command="{Binding SendFileCommand}">Send File</Button>
  25. </StackPanel>
  26. <ItemsControl ItemsSource="{Binding Clients}" Grid.Row="2">
  27. <ItemsControl.ItemTemplate>
  28. <DataTemplate>
  29. <StackPanel Orientation="Horizontal">
  30. <TextBlock Text="{Binding Value.IP}"/>
  31. <TextBlock Margin="16,0" Text="{Binding Value.Port}"/>
  32. <TextBlock Text="{Binding Value.Hub}"/>
  33. </StackPanel>
  34. </DataTemplate>
  35. </ItemsControl.ItemTemplate>
  36. </ItemsControl>
  37. </Grid>
  38. </Window>