forked from zodiacon/GflagsX
/
ImageTabView.xaml
64 lines (64 loc) · 3.49 KB
/
ImageTabView.xaml
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
<UserControl x:Class="GflagsX.Views.ImageTabView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:metro="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:local="clr-namespace:GflagsX.Views"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="16" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Grid.ColumnSpan="3">
<TextBlock Text="Executables:" VerticalAlignment="Center" />
<ComboBox ItemsSource="{Binding Images}" Width="200" Margin="4,0,0,0" SelectedItem="{Binding SelectedImage, Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" FontWeight="Bold" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Command="{Binding DeleteImageCommand}" Margin="6,0,0,0">
<StackPanel Orientation="Horizontal">
<Image Source="/icons/delete.ico" Width="20" Height="20" />
<TextBlock Margin="4,0,0,0" VerticalAlignment="Center" Text="Delete" />
</StackPanel>
</Button>
<Button Command="{Binding NewImageCommand}" Margin="6,0,0,0">
<StackPanel Orientation="Horizontal">
<Image Source="/icons/newimage.ico" Width="20" Height="20" />
<TextBlock Margin="4,0,0,0" VerticalAlignment="Center" Text="New Image..." />
</StackPanel>
</Button>
<Button Margin="12,0,0,0" Command="{Binding RefreshAllCommand}">
<StackPanel Orientation="Horizontal">
<Image Source="/icons/refreshall.ico" Width="20" Height="20" />
<TextBlock Margin="4,0,0,0" VerticalAlignment="Center" Text="Reload All" />
</StackPanel>
</Button>
</StackPanel>
<local:GflagsView Grid.Row="2" />
<GroupBox Header="More Settings" Grid.Row="2" Grid.Column="2" VerticalAlignment="Top">
<StackPanel>
<StackPanel Orientation="Horizontal" >
<TextBlock Text="Debugger:" VerticalAlignment="Center" />
<TextBox Text="{Binding DebuggerName}" Margin="4,0,0,0" Width="220" metro:TextBoxHelper.ClearTextButton="True" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="4,12">
<Button Command="{Binding ApplySettingsCommand}" Content="Apply Settings" metro:ButtonHelper.PreserveTextCase="True" />
<Button Margin="16,0,0,0" Content="Reload Settings" Command="{Binding ReloadSettingsCommand}" metro:ButtonHelper.PreserveTextCase="True"/>
</StackPanel>
</StackPanel>
</GroupBox>
</Grid>
</UserControl>