-
Notifications
You must be signed in to change notification settings - Fork 3
/
Window1.xaml
38 lines (37 loc) · 1.79 KB
/
Window1.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
<!--Copyright Nick Polyak 2008-->
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DragonWindows"
xmlns:av="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="av" x:Class="DragonWindows.Window1"
Title="Drag and Drop"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
av:DesignHeight="145.623" av:DesignWidth="238.343"
>
<Grid>
<Label Visibility="{Binding Source={StaticResource HelpVisibility}}">
<Run Text="{Binding Source={StaticResource HelpText}, Mode=OneWay}"></Run>
</Label>
<ListView x:Name="ListViewFiles"
ItemsSource="{Binding Source={StaticResource MyFiles}}"
SelectionMode="Multiple"
Visibility="{Binding Source={StaticResource MainWindowVisibility}}"
>
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel AllowDrop="True" Orientation="Horizontal">
<CheckBox IsChecked="{Binding IsSelected}" VerticalAlignment="Center" Margin="5"/>
<Image Source="{Binding PngIcon, Mode=OneTime}" Width="32" Height="32" Margin="5"/>
<TextBlock Text="{Binding FileName}" VerticalAlignment="Center" Margin="5"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
</Grid>
</Window>