<Window x:Class="EEMSCenterUI.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:EEMSCenterUI"
        xmlns:prism="http://prismlibrary.com/"
        prism:ViewModelLocator.AutoWireViewModel="True"
        mc:Ignorable="d"
        WindowChrome.WindowChrome="{DynamicResource WindowChromeKey}"
        ResizeMode="CanMinimize" WindowStyle="SingleBorderWindow"
        Title="EEMS Server" Height="450" Width="800">


    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel>
            <TextBox Text="{Binding Server.IP}"/>
            <TextBox Text="{Binding Server.Port}"/>
            <Button Command="{Binding StartServiceCommand}">Start Service</Button>
            <TextBox Text="{Binding GUID}"/>
            <Button Command="{Binding RequestFileCommand}">Request File</Button>
            <Button Command="{Binding SendFileCommand}">Send File</Button>
        </StackPanel>

        <ItemsControl ItemsSource="{Binding Clients}" Grid.Row="2">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Value.IP}"/>
                        <TextBlock Margin="16,0" Text="{Binding Value.Port}"/>
                        <TextBlock Text="{Binding Value.Hub}"/>
                    </StackPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>

</Window>
