87 lines
3.7 KiB
Plaintext
87 lines
3.7 KiB
Plaintext
<base:BaseView x:Class="DTS.Viewer.TestSummaryList.TestSummaryView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
|
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
|
|
xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity">
|
|
<ContentControl x:Name="TestListRegion" Background="LightGray" Width="Auto">
|
|
<ContentControl.Template>
|
|
<ControlTemplate TargetType="ContentControl">
|
|
|
|
<xcdg:DataGridControl x:Name="_dataGridTestSummary" ItemsSource="{Binding TestSummaryList}"
|
|
AllowDrag="False" AutoCreateColumns="False" SelectedItem="{Binding SelectedTestSummary}"
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
|
SelectionMode="Single" Width="Auto">
|
|
<xcdg:DataGridControl.ReadOnly>True</xcdg:DataGridControl.ReadOnly>
|
|
<xcdg:DataGridControl.View>
|
|
<xcdg:TableflowView UseDefaultHeadersFooters="False">
|
|
<xcdg:TableflowView.FixedHeaders>
|
|
<DataTemplate>
|
|
<xcdg:ColumnManagerRow />
|
|
</DataTemplate>
|
|
</xcdg:TableflowView.FixedHeaders>
|
|
</xcdg:TableflowView>
|
|
</xcdg:DataGridControl.View>
|
|
<xcdg:DataGridControl.Columns>
|
|
<xcdg:Column FieldName="." Title="" Width="22" >
|
|
<xcdg:Column.CellContentTemplate>
|
|
<DataTemplate>
|
|
<CheckBox IsChecked="{Binding Path=IsSelected}" HorizontalAlignment="Center"
|
|
Command="{Binding IsSelectedCommand}">
|
|
<!--<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="IsChecked">
|
|
<i:InvokeCommandAction Command="{Binding IsSelectedCommand}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>-->
|
|
</CheckBox>
|
|
</DataTemplate>
|
|
</xcdg:Column.CellContentTemplate>
|
|
</xcdg:Column>
|
|
<xcdg:Column FieldName="Id" Title="Id" Width="160" />
|
|
<xcdg:Column FieldName="Name" Title="Name" Width="*" MaxWidth="200" />
|
|
<xcdg:Column FieldName="Description" Title="Description" Width="160" />
|
|
<xcdg:Column FieldName="ChannelCount" Title="Channel Count" Width="90" />
|
|
<xcdg:Column FieldName="TestDate" Title="Date" Width="100" />
|
|
<xcdg:Column FieldName="DataType" Title="Type" Width="60" />
|
|
</xcdg:DataGridControl.Columns>
|
|
</xcdg:DataGridControl>
|
|
|
|
</ControlTemplate>
|
|
</ContentControl.Template>
|
|
</ContentControl>
|
|
</base:BaseView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|