-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
84 lines (78 loc) · 4.03 KB
/
MainWindow.xaml
File metadata and controls
84 lines (78 loc) · 4.03 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
<Window x:Class="ShellIconOverlayIdentifierSorter.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ShellIconOverlayIdentifierSorter"
xmlns:jas="clr-namespace:ShellIconOverlayIdentifierSorter"
mc:Ignorable="d"
Title="ShellIconOverlayIdentifiers" Height="800" Width="900">
<Window.Resources>
<Style x:Key="ItemContStyle" TargetType="ListViewItem">
<Style.Resources>
<LinearGradientBrush x:Key="MouseOverBrush" StartPoint="0.5, 0" EndPoint="0.5, 1">
<GradientStop Color="#22000000" Offset="0" />
<GradientStop Color="#44000000" Offset="0.4" />
<GradientStop Color="#55000000" Offset="0.6" />
<GradientStop Color="#33000000" Offset="0.9" />
<GradientStop Color="#22000000" Offset="1" />
</LinearGradientBrush>
</Style.Resources>
<Setter Property="Padding" Value="0,4" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<!-- The default control template for ListViewItem has a Border which contains the item's content. -->
<Setter Property="Border.BorderThickness" Value="0,0,0,0.5" />
<Setter Property="Border.BorderBrush" Value="LightGray" />
<!-- These triggers react to changes in the attached properties set during a managed drag-drop operation. -->
<Style.Triggers>
<Trigger Property="local:ListViewItemDragState.IsBeingDragged" Value="True">
<Setter Property="FontWeight" Value="DemiBold" />
</Trigger>
<Trigger Property="local:ListViewItemDragState.IsUnderDragCursor" Value="True">
<Setter Property="Background" Value="{StaticResource MouseOverBrush}" />
<Setter Property="Border.BorderBrush" Value="Black" />
<Setter Property="Border.BorderThickness" Value="0,1.5,0,0" />
</Trigger>
<DataTrigger Binding="{Binding active}" Value="True">
<Setter Property="Background" Value="LightBlue" />
</DataTrigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid>
<ListView Margin="10,10,10,47"
Name="listView"
ItemContainerStyle="{StaticResource ItemContStyle}">
<ListView.View>
<GridView>
<GridViewColumn DisplayMemberBinding="{Binding nr}" Header="Nr" />
<GridViewColumn Header="Image" Width="30">
<GridViewColumn.CellTemplate>
<DataTemplate>
<!--<Grid>-->
<Image Source="{Binding icon}" Height="20" />
<!--</Grid>-->
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn DisplayMemberBinding="{Binding name}" Header="Name" />
<GridViewColumn DisplayMemberBinding="{Binding dll}" Header="dll" />
</GridView>
</ListView.View>
</ListView>
<Button Content="Save"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Name="saveButton"
Margin="0,0,10,10"
Width="75"
Height="20"
Click="SaveOnClick" />
<Button Content="Delete duplicates"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Margin="0,0,104,10"
Width="109"
Click="DeleteDuplicates_Click" />
</Grid>
</Window>