Repository navigation
Expand file tree
/
Copy pathAddGamesWindow.xaml
More file actions
96 lines (85 loc) · 2.97 KB
/
Copy pathAddGamesWindow.xaml
File metadata and controls
96 lines (85 loc) · 2.97 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
<platformUi:DialogWindow
x:Class="UnityModStudio.Options.AddGamesWindow"
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:UnityModStudio.Options"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:platformUi="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
Title="Add Games"
Width="500"
Height="500"
d:DataContext="{d:DesignInstance local:AddGamesViewModelBase}"
ShowInTaskbar="False"
mc:Ignorable="d">
<Window.Resources>
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="Button">
<Setter Property="Margin" Value="4" />
</Style>
<Style BasedOn="{StaticResource {x:Type ListBox}}" TargetType="ListBox">
<Setter Property="Margin" Value="4" />
</Style>
<Style BasedOn="{StaticResource {x:Type TextBlock}}" TargetType="TextBlock">
<Setter Property="Margin" Value="4" />
</Style>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
</Window.Resources>
<Grid Margin="4">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Select games to add:" />
<ListBox
Name="GameList"
Grid.Row="1"
ItemsSource="{Binding Games}"
SelectionChanged="GameList_SelectionChanged"
SelectionMode="Multiple">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding DisplayName}" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="ToolTip" Value="{Binding Path}" />
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
<ProgressBar
Grid.Row="1"
Width="100"
Height="20"
VerticalAlignment="Center"
IsIndeterminate="True"
Visibility="{Binding IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}" />
<Grid Grid.Row="2">
<Grid.Resources>
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="Button">
<Setter Property="Width" Value="80" />
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button Command="{Binding SelectAllCommand}" Content="Select all" />
<Button
Grid.Column="2"
Command="{Binding ConfirmCommand}"
Content="OK"
IsDefault="True" />
<Button
Grid.Column="3"
Command="{Binding CancelCommand}"
Content="Cancel"
IsCancel="True" />
</Grid>
</Grid>
</platformUi:DialogWindow>