-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathSelectFilesPane.xaml
90 lines (74 loc) · 2.96 KB
/
SelectFilesPane.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<UserControl
x:Class="VBA10.SelectFilesPane"
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="500"
d:DesignWidth="320">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
BorderThickness="2,0,2,2" BorderBrush="{ThemeResource ListBoxBorderThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.Resources>
<CollectionViewSource x:Name="FileListvs"/>
</Grid.Resources>
<StackPanel Background="{ThemeResource ListBoxBorderThemeBrush}"
VerticalAlignment="Stretch">
<TextBlock Text="Assigned at run time"
x:Name="txtTitle"
Style="{ThemeResource TitleTextBlockStyle}"
Margin="10,4,0,4"
/>
</StackPanel>
<TextBlock x:Name="txtNoFile" Grid.Row="1"
Text="Assigned at run time"
Margin="10,8,0,8"/>
<ListBox Name="fileList"
Background="Transparent"
ItemsSource="{Binding Source={StaticResource FileListvs}}"
Grid.Row="1"
SelectionMode="Multiple"
>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="10"/>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding}"
FontSize="18"
/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<StackPanel Orientation="Horizontal"
Margin="0,4,0,4"
Grid.Row="2"
HorizontalAlignment="Center">
<Button Content="**Cancel"
Width="120"
HorizontalAlignment="Center"
x:Name="CancelBtn"
Click="CancelBtn_Click"
Margin="0,0,8,0"
x:Uid="CancelBtn"
/>
<Button Content="**OK"
Width="120"
HorizontalAlignment="Center"
x:Name="OkBtn"
Click="OkBtn_Click"
x:Uid="OKBtn"
/>
</StackPanel>
</Grid>
</UserControl>