2015-06-19 23:04:52 +00:00
|
|
|
<UserControl
|
|
|
|
|
x:Class="VBA10.SelectFilePane"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:local="using:VBA10"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="300"
|
|
|
|
|
d:DesignWidth="346">
|
|
|
|
|
|
2015-06-20 07:20:30 +00:00
|
|
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
2015-08-04 03:27:54 +00:00
|
|
|
BorderThickness="2,0,2,2" BorderBrush="{ThemeResource ListBoxBorderThemeBrush}">
|
2015-06-20 07:20:30 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<CollectionViewSource x:Name="FileListvs"/>
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
|
2015-06-22 17:27:18 +00:00
|
|
|
|
2015-06-20 07:20:30 +00:00
|
|
|
<StackPanel Background="{ThemeResource ListBoxBorderThemeBrush}"
|
|
|
|
|
VerticalAlignment="Stretch">
|
2015-08-06 14:24:47 +00:00
|
|
|
<TextBlock Text="Assigned at run time"
|
|
|
|
|
x:Name="txtTitle"
|
2015-07-31 16:32:11 +00:00
|
|
|
Style="{ThemeResource TitleTextBlockStyle}"
|
2015-08-06 14:24:47 +00:00
|
|
|
Margin="10,4,0,4"
|
2015-06-20 07:20:30 +00:00
|
|
|
/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
2015-07-29 21:55:35 +00:00
|
|
|
<TextBlock x:Name="txtNoFile" Grid.Row="1"
|
2015-09-25 21:45:30 +00:00
|
|
|
Text="**No supported file found!"
|
2015-07-29 21:55:35 +00:00
|
|
|
Foreground="Red"
|
2015-09-25 21:45:30 +00:00
|
|
|
x:Uid="NoSupportedFile"
|
2015-08-06 14:24:47 +00:00
|
|
|
Margin="10,8,0,8"/>
|
2015-07-29 21:55:35 +00:00
|
|
|
|
2015-06-20 07:20:30 +00:00
|
|
|
<ListBox Name="fileList"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
SelectionChanged="fileList_SelectionChanged"
|
|
|
|
|
ItemsSource="{Binding Source={StaticResource FileListvs}}"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
>
|
2015-08-06 14:24:47 +00:00
|
|
|
<ListBox.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="ListBoxItem">
|
|
|
|
|
<Setter Property="Padding" Value="10"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</ListBox.ItemContainerStyle>
|
|
|
|
|
|
2015-06-20 07:20:30 +00:00
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
2015-08-06 14:24:47 +00:00
|
|
|
<TextBlock Text="{Binding}"
|
|
|
|
|
FontSize="18"/>
|
2015-06-20 07:20:30 +00:00
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
|
</ListBox>
|
2015-08-06 14:24:47 +00:00
|
|
|
|
2015-06-20 07:20:30 +00:00
|
|
|
|
2015-06-19 23:04:52 +00:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|