<Window x:Class="RemoteCamClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:RemoteCamClient"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <local:NotConverter x:Key="NotConverter" />
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Left">
            <TextBlock Text="Moč signala" VerticalAlignment="Center">
                <TextBlock.LayoutTransform>
                    <RotateTransform Angle="-90" />
                </TextBlock.LayoutTransform>
            </TextBlock>
            <ProgressBar x:Name="moč" Orientation="Vertical" Minimum="0" Maximum="100" Width="20" Margin="4" Value="{Binding SignalStrength}" />
        </StackPanel>
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="True">
            <TextBlock Text="Prenešeno" VerticalAlignment="Center" />
            <Button x:Name="Prenesi" DockPanel.Dock="Right" Margin="4" 
                    IsEnabled="{Binding IsLoading, Converter={StaticResource NotConverter}}" Click="Prenesi_Click">Prenesi</Button>
            <ProgressBar x:Name="prenos" Minimum="0" HorizontalAlignment="Stretch" Margin="4" Maximum="{Binding SizeToTransfer}" Value="{Binding Transferred}" />
        </DockPanel>
        <Image Source="{Binding BitmapSource}" />
    </DockPanel>
</Window>
