-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelSelectionWindow.xaml
More file actions
44 lines (40 loc) · 2.15 KB
/
ModelSelectionWindow.xaml
File metadata and controls
44 lines (40 loc) · 2.15 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
<Window x:Class="Sm64DecompLevelViewer.ModelSelectionWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Select Model" Height="500" Width="400"
WindowStartupLocation="CenterOwner"
Background="#1E1E1E" Foreground="#CCCCCC"
ShowInTaskbar="False">
<Window.Resources>
<SolidColorBrush x:Key="PanelBackground" Color="#252526"/>
<SolidColorBrush x:Key="BorderBrush" Color="#3F3F46"/>
<SolidColorBrush x:Key="AccentBrush" Color="#007ACC"/>
</Window.Resources>
<Grid Margin="15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Search Model IDs:" Margin="0,0,0,5"/>
<TextBox x:Name="SearchTextBox" Grid.Row="1" Margin="0,0,0,10"
Background="#333333" Foreground="White" BorderBrush="{StaticResource BorderBrush}"
Padding="3" TextChanged="SearchTextBox_TextChanged"/>
<ListBox x:Name="ModelListBox" Grid.Row="2"
Background="#333333" Foreground="White" BorderBrush="{StaticResource BorderBrush}"
MouseDoubleClick="ModelListBox_MouseDoubleClick">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" Foreground="{Binding Color}" Padding="2"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,15,0,0">
<Button Content="Select" Click="SelectButton_Click" Width="100" Margin="0,0,10,0"
Background="{StaticResource AccentBrush}" Foreground="White" BorderThickness="0" Padding="8"/>
<Button Content="Cancel" Click="CancelButton_Click" Width="100"
Background="#3E3E42" Foreground="White" BorderThickness="0" Padding="8"/>
</StackPanel>
</Grid>
</Window>