Repository navigation
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
88 lines (81 loc) · 3.02 KB
/
Copy pathMainWindow.xaml
File metadata and controls
88 lines (81 loc) · 3.02 KB
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
<Window
x:Class="Recycli.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Recycli"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Recycli"
Width="800"
Height="550"
d:DataContext="{d:DesignInstance Type=local:ViewModel}"
ThemeMode="Light"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35" />
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<RowDefinition Height="40" />
<RowDefinition Height="*" />
<RowDefinition Height="50" />
</Grid.RowDefinitions>
<TextBlock
Grid.Row="1"
Margin="0,0,20,0"
HorizontalAlignment="Right"
FontSize="10"
Text="{Binding VersionText}" />
<TextBlock
Grid.Row="2"
Margin="20,0,0,0"
Text="Select the items you want to restore (multiple selection with CTRL)" />
<TextBlock
Grid.Row="3"
Margin="0,0,280,0"
HorizontalAlignment="right"
VerticalAlignment="Center"
Text="Search" />
<TextBox
Grid.Row="3"
Width="250"
Height="30"
Margin="0,0,20,0"
HorizontalAlignment="Right"
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" />
<DockPanel Grid.Row="4">
<ListView
Grid.Row="4"
ItemsSource="{Binding VisibleRecycleBinFiles, Mode=TwoWay}"
SelectionChanged="ListView_SelectionChanged">
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding Name}" />
</TextBlock>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</DockPanel>
<Button
Grid.Row="5"
Margin="0,5,100,0"
HorizontalAlignment="Right"
Command="{Binding RestoreFileCommand}">
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Text="Restore " />
<TextBlock FontFamily="{StaticResource SymbolThemeFontFamily}" Text="" />
</StackPanel>
</Button>
<Button
Grid.Row="5"
Margin="0,5,10,0"
HorizontalAlignment="Right"
Command="{Binding DeleteFileCommand}">
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Text="Delete " />
<TextBlock FontFamily="{StaticResource SymbolThemeFontFamily}" Text="" />
</StackPanel>
</Button>
</Grid>
</Window>