-
Notifications
You must be signed in to change notification settings - Fork 10
/
AddWindow.xaml
48 lines (47 loc) · 2.49 KB
/
AddWindow.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
<rtf:ManagedWindow x:Class="TankIconMaker.AddWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rtf="clr-namespace:RT.Util.Forms;assembly=RT.Util"
xmlns:src="clr-namespace:TankIconMaker"
x:ClassModifier="internal"
Title="Add" ShowInTaskbar="False"
MinWidth="250" MinHeight="250" Height="390" Width="268"
TextOptions.TextFormattingMode="Display"
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
Icon="/TankIconMaker;component/Resources/Graphics/icon.ico">
<Window.Resources>
<ScaleTransform x:Key="UiZoomer" CenterX="0" CenterY="0" ScaleX="1" ScaleY="1" />
</Window.Resources>
<Grid Margin="10" LayoutTransform="{StaticResource UiZoomer}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Name="lblName" Padding="3,0,0,3" Target="{Binding ElementName=ctName}">Layer _name:</Label>
<TextBox Grid.Row="1" Name="ctName" />
<Label Grid.Row="2" Name="lblList" Padding="3,8,0,3" Target="{Binding ElementName=ctList}">_Type:</Label>
<ListBox Grid.Row="3" Name="ctList" MouseDoubleClick="add">
<ListBox.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#B8DBFF"></SolidColorBrush>
</ListBox.Resources>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Name}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock Grid.Row="4" Padding="0,8,0,12" Name="ctDescription" TextWrapping="Wrap" Text="{Binding ElementName=ctList, Path=SelectedItem.Description}" />
<WrapPanel Grid.Row="5" HorizontalAlignment="Center">
<Button Margin="4,0" IsDefault="True" Click="add">
<AccessText Margin="16,2" Name="ctAddLabel">_Add</AccessText>
</Button>
<Button Margin="4,0" IsCancel="True">
<AccessText Margin="16,2" Name="ctCancelLabel">_Cancel</AccessText>
</Button>
</WrapPanel>
</Grid>
</rtf:ManagedWindow>