/
TBXDatCatWindow.xaml
48 lines (48 loc) · 3.22 KB
/
TBXDatCatWindow.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
<Window x:Class="MultiTermTBXMapper.TBXDatCatWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MultiTermTBXMapper"
mc:Ignorable="d"
Title="TBXDatCatWindow" Height="482.353" Width="815.197"
FocusManager.FocusedElement="{Binding ElementName=txtbox_search}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1.25*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height=".25*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height=".5*"/>
</Grid.RowDefinitions>
<TextBlock x:Name="dc_name_block" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" />
<Label x:Name="label_dc_element" Grid.Row="1" Content="Element:" FontSize="20" Margin="0,10,0,0" />
<TextBlock x:Name="textblock_xml" Grid.Row="1" FontSize="20" Margin="115,0,22,287" Height="24" Width="360" VerticalAlignment="Bottom" />
<Label x:Name="label_descrip" Grid.Row="1" Content="Description:" Target="{Binding ElementName=textBlock_description}" FontSize="20" Margin="0,60,0,0" />
<TextBox x:Name="textbox_descrip" Grid.Row="1" Margin="10,100,10,0" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
<Button Content="Select" Grid.Row="2" Height="50" Width="280" Click="Button_Click" IsDefault="True" />
</Grid>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height=".25*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Label Content="TBX Data Categories" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="4,0,0,4"/>
<ListBox Grid.Row="1" Name="dcs_tbx" BorderBrush="Gray" BorderThickness="1" SelectionChanged="dcs_tbx_SelectionChanged">
<ListBoxItem Content="None: Do Not Map" MouseDoubleClick="ListBoxItem_MouseDoubleClick"/>
<!--<ListBoxItem Content="Varies By Content" MouseDoubleClick="ListBoxItem_MouseDoubleClick" />-->
</ListBox>
<TextBox Name="txtbox_search" Style="{StaticResource placeHolder}" Tag="Search" HorizontalAlignment="Right" Height="23" Grid.Row="0" Margin="0,0,4,2" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="180" TextChanged="TextBox_TextChanged" FocusManager.FocusedElement="{Binding ElementName=txtbox_search}" />
<Image HorizontalAlignment="Right" Height="20" Grid.Row="0" Margin="0,0,6,3" VerticalAlignment="Bottom" Width="20" Source="Resources/magnifying_glass.png">
<Image.Resources>
<Style TargetType="Image">
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
</Style>
</Image.Resources>
</Image>
</Grid>
</Grid>
</Window>