<UserControl x:Class="SharepointToolbox.Views.Tabs.SettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:loc="clr-namespace:SharepointToolbox.Localization">
  <StackPanel Margin="16">
    <!-- Language -->
    <Label Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[settings.language]}" />
    <ComboBox Width="200" HorizontalAlignment="Left"
              SelectedValue="{Binding SelectedLanguage}"
              SelectedValuePath="Tag">
      <ComboBoxItem Tag="en"
                    Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[settings.lang.en]}" />
      <ComboBoxItem Tag="fr"
                    Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[settings.lang.fr]}" />
    </ComboBox>

    <Separator Margin="0,12" />

    <!-- Data folder -->
    <Label Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[settings.folder]}" />
    <DockPanel>
      <Button DockPanel.Dock="Right"
              Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[settings.browse]}"
              Command="{Binding BrowseFolderCommand}" Width="80" Margin="8,0,0,0" />
      <TextBox Text="{Binding DataFolder, UpdateSourceTrigger=PropertyChanged}" />
    </DockPanel>
  </StackPanel>
</UserControl>
