-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
30 lines (28 loc) · 1.61 KB
/
MainWindow.xaml
File metadata and controls
30 lines (28 loc) · 1.61 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
<Window x:Class="GarbageCollector.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="GarbageCollector Alpha Testing" Height="550" Width="700">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox x:Name="FileList" SelectionMode="Single" MouseDoubleClick="FileList_MouseDoubleClick">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="2">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" VerticalAlignment="Center" Margin="5"/>
<Image Source="{Binding Icon}" Width="20" Height="20" Margin="4,0" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="8,0"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
<Button Content="Delete Selected" Click="DeleteSelected_Click" Margin="5" Padding="10,5"/>
<Button Content="Organize by Type" Click="OrganizeByType_Click" Margin="5" Padding="10,5"/>
<Button Content="Refresh" Click="Refresh_Click" Margin="5" Padding="10,5"/>
<Button Content="About" Click="About_Click" Margin="5" Padding="10,5"/>
</StackPanel>
</Grid>
</Window>