| | |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition/> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <Grid dp:GridHelper.InnerBorder="1" dp:GridHelper.Space="5" |
| | |
| | | <DataGrid Grid.Row="2" Style="{StaticResource DefaultDataGrid}" |
| | | pu:DataGridHelper.ColumnHeaderFontSize="12" |
| | | pu:DataGridHelper.ColumnHeaderPadding="3" |
| | | dp:DataGridHelper.ShowRowNumber="True" |
| | | VirtualizingPanel.IsContainerVirtualizable="True" |
| | | VirtualizingPanel.IsVirtualizing="True" |
| | | VirtualizingPanel.VirtualizationMode="Recycling" |
| | | RowHeight="20" |
| | | FontSize="12" |
| | | ColumnHeaderHeight="30" |
| | | ItemsSource="{Binding Datasource}" |
| | | x:Name="table"> |
| | | <DataGrid.Resources> |
| | | <Style TargetType="DataGridCell" |
| | |
| | | </DataGrid.Resources> |
| | | |
| | | <DataGrid.Columns> |
| | | <DataGridTemplateColumn Header="#" CanUserResize="False"> |
| | | <!--<DataGridTemplateColumn Header="#" CanUserResize="False"> |
| | | <DataGridTemplateColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <TextBlock Text="{Binding Converter={StaticResource rowNumber}, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow},AncestorLevel=1}}"/> |
| | | </DataTemplate> |
| | | </DataGridTemplateColumn.CellTemplate> |
| | | </DataGridTemplateColumn> |
| | | </DataGridTemplateColumn>--> |
| | | |
| | | <DataGridTextColumn Header="#" |
| | | Binding="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}" |
| | | Width="40"/> |
| | | <DataGridTextColumn Width="*" Binding="{Binding Name}"> |
| | | <DataGridTextColumn.Header> |
| | | <TextBlock Text="{DynamicResource Test.Name}"/> |
| | |
| | | </DataGridTemplateColumn> |
| | | </DataGrid.Columns> |
| | | </DataGrid> |
| | | <Grid Grid.Row="3" Height="20" Margin="0"> |
| | | <ProgressBar Grid.Row="3" x:Name="testProcess" /> |
| | | <Label Width="45" DockPanel.Dock="Right" x:Name="testProcessLabel" Padding="0" |
| | | VerticalContentAlignment="Center"/> |
| | | </Grid> |
| | | |
| | | <Grid Background="#f1eded" Grid.Row="4" Height="25"> |
| | | <DockPanel> |
| | | <Label Padding="0" VerticalContentAlignment="Center" Content="{Binding CurrentStep}"/> |
| | | |
| | | <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="0,0,5,0"> |
| | | <Label Padding="0" FontSize="12" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeCount}"/> |
| | | <Label Padding="0" FontSize="12" Margin="0,0,15,0" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{Binding ProbeCount}"/> |
| | | |
| | | <StackPanel x:Name="probeWarnPanel" Orientation="Horizontal" Visibility="Collapsed"> |
| | | <Label x:Name="alarmLabel" Padding="0" FontSize="12" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeAlarmCount}"/> |
| | | <Label x:Name="alarmValue" Padding="0" FontSize="12" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{Binding ProbeWarn}"/> |
| | | </StackPanel> |
| | | |
| | | <Button Style="{StaticResource LinkButton}" x:Name="clear" Margin="10,0,0,0" Click="Button_Click" |
| | | Content="{DynamicResource App.Clear}"/> |
| | | </StackPanel> |
| | | |
| | | <Label x:Name="probeCountAlarm" Visibility="Collapsed" DockPanel.Dock="Left" Padding="30,0" FontSize="12" Foreground="Red" |
| | | VerticalAlignment="Center" |
| | | VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeAlarm}"/> |
| | | </DockPanel> |
| | | </Grid> |
| | | <!--<DockPanel Grid.Row="4"> |
| | | <StatusBar> |
| | | <StatusBarItem> |
| | | <Label Padding="0" VerticalContentAlignment="Center" Content="{Binding CurrentStep}"/> |
| | | |
| | | |
| | | </StatusBarItem> |
| | | </StatusBar> |
| | | </DockPanel>--> |
| | | </Grid> |
| | | </UserControl> |