﻿<UserControl x:Class="DriveDotNetGuiClient.SettingsObjects.DownloadBinParams"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:localCmd="clr-namespace:DriveDotNetGuiClient.Commands"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <localCmd:OpenFileBrowserCommand x:Key="OpenFileBrowserCommand" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="60"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="25"/>
        </Grid.ColumnDefinitions>
        <CheckBox Grid.ColumnSpan="3" Content="Load parameters from flash to RAM after downloading " Margin="15" IsChecked="{Binding Settings.LoadToRAM}"/>
        <TextBlock Text="Path: " Grid.Row="1" Grid.Column="0" Height="25" Margin="15"/>
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Path}" Height="25" Margin="15"/>
        <Button Grid.Row="1" Grid.Column="2" Content="..." Height="25" Width="25" Command="{StaticResource OpenFileBrowserCommand}" CommandParameter="{Binding}"/>
    </Grid>
</UserControl>
