54 lines
3.1 KiB
Plaintext
54 lines
3.1 KiB
Plaintext
|
|
<base:BaseView x:Class="TTSImport.ReadFileView"
|
||
|
|
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:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
||
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||
|
|
xmlns:root="clr-namespace:TTSImport"
|
||
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common">
|
||
|
|
<base:BaseView.Resources>
|
||
|
|
<ResourceDictionary>
|
||
|
|
<ResourceDictionary.MergedDictionaries>
|
||
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
||
|
|
</ResourceDictionary.MergedDictionaries>
|
||
|
|
<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="5" />
|
||
|
|
</Style>
|
||
|
|
<Style TargetType="Button">
|
||
|
|
<Setter Property="Margin" Value="5" />
|
||
|
|
</Style>
|
||
|
|
</ResourceDictionary>
|
||
|
|
</base:BaseView.Resources>
|
||
|
|
<Grid Background="{DynamicResource Brush_ApplicationContentBackground}" >
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="Auto" MinWidth="160"/>
|
||
|
|
<ColumnDefinition Width="Auto" />
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<ContentControl Content="{Binding StatusAndProgressBarView}" Grid.Row="0" Grid.ColumnSpan="4" Height="100" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
|
||
|
|
|
||
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{root:TranslateExtension ImportFile}" VerticalAlignment="Top"/>
|
||
|
|
<Button Grid.Row="1" Grid.Column="1" Content="{root:TranslateExtension Browse}" Width="150" HorizontalAlignment="Left" AutomationProperties.AutomationId="btnBrowse" >
|
||
|
|
<i:Interaction.Triggers>
|
||
|
|
<i:EventTrigger EventName="Click">
|
||
|
|
<i:InvokeCommandAction Command="{Binding BrowseClicked}" />
|
||
|
|
</i:EventTrigger>
|
||
|
|
</i:Interaction.Triggers>
|
||
|
|
</Button>
|
||
|
|
<TextBlock Grid.Row="1" Grid.Column="2" TextWrapping="Wrap" Height="40"
|
||
|
|
Text="{Binding FileToImport, FallbackValue='C:\\Data\\Long Path Here\\Data\\Long Path Here\\Data\\Long Path Here\\Data\\Long Path Here\\Data\\Long Path Here\\Import.csv'}" x:Name="tbExportFile"
|
||
|
|
AutomationProperties.AutomationId="FileToImport" />
|
||
|
|
</Grid>
|
||
|
|
</base:BaseView>
|