55 lines
2.9 KiB
Plaintext
55 lines
2.9 KiB
Plaintext
<base:BaseView x:Class="GroupImport.GroupImportOptionsView"
|
|
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:root="clr-namespace:DBImportExport.Resources"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<converters:FilePathsToShortStringConverter x:Key="filesToStringConverter" />
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource PageContentTextStyle}" >
|
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="Margin" Value="5" />
|
|
</Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Margin" Value="0,2,0,2" />
|
|
</Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Margin" Value="5" />
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" MinWidth="150" />
|
|
<ColumnDefinition Width="200" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<!-- for now hide since there's only one import format currently...
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{root:TranslateExtension Options_Format}" />
|
|
<ComboBox Grid.Row="0" Grid.Column="1" VerticalAlignment="Center"/>
|
|
-->
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{root:TranslateExtension Options_Files}" />
|
|
<TextBox IsEnabled="False" IsReadOnly="True" Grid.Row="1" Grid.Column="1" Text="{Binding SourceFiles, Converter={StaticResource ResourceKey=filesToStringConverter}}"/>
|
|
<Button Grid.Row="1" Grid.Column="2" Content="{root:TranslateExtension Options_Browse}">
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Click">
|
|
<i:InvokeCommandAction Command="{Binding ImportBrowseCommand}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</Button>
|
|
</Grid>
|
|
</base:BaseView>
|