Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKB/HeuristicLab.OKB.Cockpit.Query/RunView/AttributeSelectorWindow.xaml @ 7068

Last change on this file since 7068 was 4311, checked in by swagner, 14 years ago

Integrated OKB clients for HL 3.3 (#1166)

File size: 3.4 KB
Line 
1<Window xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
2        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3        xmlns:src="clr-namespace:HeuristicLab.OKB.Cockpit.Query"
4        x:Class="HeuristicLab.OKB.Cockpit.Query.AttributeSelectorWindow"
5        Title="Attribute Selector Configuration"
6        WindowStyle="ToolWindow"
7        WindowStartupLocation="CenterOwner"
8        SizeToContent="WidthAndHeight"
9        PreviewKeyDown="CloseOnEnterOrEscape"
10        >
11  <Window.Resources>
12    <Style TargetType="Button">
13      <Setter Property="Padding" Value="15 0 15 0"/>
14      <Setter Property="Margin" Value="2 0 2 0"/>
15    </Style>
16    <src:TypeNameConverter x:Key="TypeNameConverter"/>
17    <src:ListFormatter x:Key="ListFormatter"/>
18  </Window.Resources>
19  <Grid>
20    <Grid.ColumnDefinitions>
21      <ColumnDefinition Width="Auto"/>
22      <ColumnDefinition/>
23    </Grid.ColumnDefinitions>
24    <Grid.RowDefinitions>
25      <RowDefinition Height="Auto"/>
26      <RowDefinition Height="Auto"/>
27      <RowDefinition Height="Auto"/>
28      <RowDefinition Height="Auto"/>
29      <RowDefinition Height="Auto"/>
30      <RowDefinition Height="Auto"/>
31      <RowDefinition Height="Auto"/>
32      <RowDefinition/>
33      <RowDefinition Height="Auto"/>
34    </Grid.RowDefinitions>
35
36    <Label Grid.Column="0" Grid.Row="0">Table Name:</Label>
37    <ComboBox Name="TableName" Grid.Column="1" Grid.Row="0"
38              SelectedValue="{Binding Path=TableName, Mode=TwoWay}"/>
39
40    <Label Grid.Column="0" Grid.Row="1">Field Name:</Label>
41    <ComboBox Name="FieldName" Grid.Column="1" Grid.Row="1"
42              SelectedValue="{Binding Path=FieldName, Mode=TwoWay}"/>
43
44    <Label Grid.Column="0" Grid.Row="2">DataType:</Label>
45    <TextBlock Name="DataType" Grid.Column="1" Grid.Row="2"
46               Text="{Binding Path=DataType, Converter={StaticResource TypeNameConverter}}"/>
47
48    <Label Grid.Column="0" Grid.Row="3">Min Value:</Label>
49    <TextBox Name="MinValue" Grid.Column="1" Grid.Row="3"
50             Text="{Binding Path=MinValue, Mode=TwoWay}"/>
51
52    <Label Grid.Column="0" Grid.Row="4">Max Value:</Label>
53    <TextBox Name="MaxValue" Grid.Column="1" Grid.Row="4"
54             Text="{Binding Path=MaxValue, Mode=TwoWay}"/>
55
56    <Label Grid.Column="0" Grid.Row="5">Allowed Values:</Label>
57    <TextBox Name="AllowedValues" Grid.Column="1" Grid.Row="5"
58             Text="{Binding Path=AllowedValues, Mode=TwoWay, Converter={StaticResource ListFormatter}}"/>
59
60    <Label Grid.Column="0" Grid.Row="6">Hidden:</Label>
61    <CheckBox Name="Hidden" Grid.Column="1" Grid.Row="6" VerticalAlignment="Center" HorizontalAlignment="Center"/>
62
63    <TextBlock Grid.Row="7" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"
64               Foreground="Red" Padding="15"
65               Text="{Binding Path=ValidationErrorString}"/>
66
67    <Border Grid.ColumnSpan="2" Grid.Row="8" Margin="5">
68      <DockPanel Grid.ColumnSpan="2" Grid.Row="7" LastChildFill="False">
69        <Button Name="CancelButton" Click="OnClick" DockPanel.Dock="Right">Cancel</Button>
70        <Button Name="OKButton" Click="OnClick" DockPanel.Dock="Right" IsEnabled="{Binding Path=IsValid}">OK</Button>
71        <Button Name="QueryButton" Click="OnClick" DockPanel.Dock="Left">Update Schema</Button>
72        <Rectangle Width="30"/>
73      </DockPanel>
74    </Border>
75  </Grid>
76</Window>
Note: See TracBrowser for help on using the repository browser.