Repository navigation
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
102 lines (95 loc) · 5.04 KB
/
Copy pathMainWindow.xaml
File metadata and controls
102 lines (95 loc) · 5.04 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<Window x:Class="ida_picker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="IDA Launcher" Height="500" Width="700"
WindowStartupLocation="CenterScreen"
KeyDown="Window_KeyDown">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Text="Select IDA Installation (Press 1-9 for quick selection):"
FontSize="16" FontWeight="SemiBold"
Margin="0,0,0,20"/>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<ItemsControl x:Name="IdaItemsControl">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderThickness="1"
CornerRadius="4"
Margin="10"
Padding="15"
Width="150"
Height="180"
Cursor="Hand"
MouseLeftButtonDown="Item_MouseLeftButtonDown"
Tag="{Binding}">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorDefaultBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource CardBackgroundFillColorSecondaryBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource CardStrokeColorDefaultBrush}"/>
<Setter Property="BorderThickness" Value="2"/>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Grid.Row="0"
Source="{Binding IconSource}"
Width="64"
Height="64"
HorizontalAlignment="Center"
Margin="0,0,0,10"/>
<TextBlock Grid.Row="1"
Text="{Binding DisplayName}"
FontSize="13"
FontWeight="SemiBold"
TextWrapping="Wrap"
TextAlignment="Center"
Margin="0,0,0,5"/>
<TextBlock Grid.Row="3"
Text="{Binding Version}"
FontSize="11"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
TextAlignment="Center"
VerticalAlignment="Bottom"/>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
<Label Grid.Row="2"
x:Name="FilePathLabel"
HorizontalContentAlignment="Center"
Margin="0,10,0,10"
Visibility="Collapsed"/>
<Button Grid.Row="3"
x:Name="CancelButton"
Content="Cancel"
Width="100"
Height="35"
HorizontalAlignment="Right"
Margin="0,10,0,0"
Click="CancelButton_Click"/>
</Grid>
</Window>