<Window x:Class="WpfApplication3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="450" Width="800" WindowState="Maximized">
    <Grid>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <DockPanel Grid.Column="1" Grid.RowSpan="2">
            <TextBox Name="BoxImage" DockPanel.Dock="Bottom"   Text="{Binding ElementName=SliderImage, Path=Value, UpdateSourceTrigger=PropertyChanged}" IsEnabled="False"/>
            <Slider Name="SliderImage" Orientation="Vertical"  Margin="5" IsDirectionReversed="True" TickPlacement="TopLeft" TickFrequency="1" IsSnapToTickEnabled="True" ValueChanged="SliderImage_OnValueChanged"/>
        </DockPanel>
        
        <Image Name="ImagePlase" ToolTip="{Binding ElementName=ImagePlase, Path=Source}"/>
        <Label Content="{Binding ElementName=ImagePlase, Path=Source, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
        <Grid Grid.Row="1" Grid.ColumnSpan="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button Name="OpenFolder" FontSize="14" Padding="3" Content="Open Image" Click="OpenFolder_OnClick"/>
            <StackPanel Orientation="Horizontal"  Grid.ColumnSpan="2" HorizontalAlignment="Center">
                <Button Name="BtnPrev" FontSize="14" Padding="3" Content="Prev Image" Margin="5,0,0,0" Click="BtnPrev_OnClick"/>
                <Button Name="BtnNext" FontSize="14" Padding="3" Content="Next Image" Margin="5,0,0,0" Click="BtnNext_OnClick"/>
            </StackPanel>
            
        </Grid>
    </Grid>
</Window>
