﻿<UserControl x:Class="DriveDotNetGuiClient.Controls.PathAndBrowse"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="30" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>
        <TextBox Grid.Column="0" Text="{Binding Path=SelectedPath, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl, AncestorLevel=1}, Mode=TwoWay}" VerticalAlignment="Center"/>
        <Button Grid.Column="2" Content=" ... " Margin="3,0" VerticalAlignment="Center" Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl, AncestorLevel=1}, Path=cmdBrowse}"/>
    </Grid>
</UserControl>
