Free cookie consent management tool by TermsFeed Policy Generator

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

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

Integrated OKB clients for HL 3.3 (#1166)

File size: 2.9 KB
Line 
1<UserControl xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
2             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3             x:Class="HeuristicLab.OKB.Cockpit.Query.RunView">
4  <UserControl.Resources>
5    <Style x:Key="gridViewHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
6      <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
7    </Style>
8    <DataTemplate x:Key="gridViewHeaderTemplate">
9      <DataTemplate.Triggers>
10        <DataTrigger Binding="{Binding Path=IsValid}" Value="False">
11          <Setter Property="TextBlock.Foreground" Value="Red"/>
12        </DataTrigger>
13      </DataTemplate.Triggers>
14      <StackPanel ToolTip="{Binding}">
15        <StackPanel.ContextMenu>
16          <ContextMenu MenuItem.Click="ContextMenuClicked" Tag="{Binding}">
17            <MenuItem Name="ConfigureItem" Header="Configure Column"/>
18            <MenuItem Name="RemoveItem" Header="Remove Column"/>
19          </ContextMenu>
20        </StackPanel.ContextMenu>
21        <TextBlock Text="{Binding Path=TableName}" Grid.Row="0"/>
22        <Separator Grid.Row="1"/>
23        <TextBlock Text="{Binding Path=FieldName}" Grid.Row="2"/>
24      </StackPanel>
25    </DataTemplate>
26  </UserControl.Resources>
27
28  <DockPanel>
29
30    <Grid DockPanel.Dock="Bottom">
31      <Grid.RowDefinitions>
32        <RowDefinition/>
33      </Grid.RowDefinitions>
34      <Grid.ColumnDefinitions>
35        <ColumnDefinition Width="Auto"/>
36        <ColumnDefinition Width="*"/>
37        <ColumnDefinition Width="Auto"/>
38      </Grid.ColumnDefinitions>
39      <StackPanel Orientation="Horizontal" Grid.Column="0">
40        <Button Click="OnAddClicked" Margin="8 8 4 8">Add Column</Button>
41        <Button Click="OnCopyClicked" Margin="4 8 4 8">Copy</Button>
42      </StackPanel>
43      <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
44        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">
45          <Run>#Runs:</Run>
46          <Run Name="NrOfRunsLabel"/>
47        </TextBlock>
48        <TextBlock Name="ErrorMessages" Foreground="Red"/>
49      </StackPanel>
50      <StackPanel Orientation="Horizontal" Grid.Column="2">
51        <Button Name="CheckButton" Click="OnCheckClicked" Margin="8 8 4 8">Check</Button>
52        <Button Name="UpdateButton" Click="OnUpdateClicked" Margin="4 8 8 8">Update</Button>
53      </StackPanel>
54    </Grid>
55
56
57    <ListView Name="Runs" MinWidth="400" MinHeight="200">
58      <ListView.View>
59        <GridView ColumnHeaderTemplate="{StaticResource gridViewHeaderTemplate}"
60                  ColumnHeaderContainerStyle="{StaticResource gridViewHeaderStyle}">
61        </GridView>
62      </ListView.View>
63      <ListView.ContextMenu>
64        <ContextMenu>
65          <MenuItem Header="Add Column" Click="OnAddClicked"/>
66        </ContextMenu>
67      </ListView.ContextMenu>
68    </ListView>
69
70
71
72  </DockPanel>
73</UserControl>
Note: See TracBrowser for help on using the repository browser.