|
@@ -13,29 +13,90 @@
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
- <Grid Background="{StaticResource BackgroundColor}">
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition/>
|
|
|
|
- <RowDefinition Height="8"/>
|
|
|
|
- <RowDefinition Height="auto"/>
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
- <ContentControl Content="{Binding PlotControl, Mode=OneTime}" MinWidth="1200" MinHeight="600"/>
|
|
|
|
|
|
+ <Border Background="{StaticResource BackgroundColor}">
|
|
|
|
|
|
- <ItemsControl Grid.Row="2" ItemsSource="{Binding Tabs}" Margin="8">
|
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
|
- <DataTemplate>
|
|
|
|
- <Button Background="Transparent" Margin="2"
|
|
|
|
|
|
+ <Grid Margin="8" MinWidth="1200">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition MinHeight="540"/>
|
|
|
|
+ <RowDefinition Height="0"/>
|
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
|
+ <RowDefinition Height="0"/>
|
|
|
|
+ <RowDefinition MaxHeight="240" Height="auto"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <ContentControl Content="{Binding PlotControl, Mode=OneTime}"/>
|
|
|
|
+ <TextBlock Panel.ZIndex="1" Text="{Binding Hint}" Margin="18,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
|
|
|
+ <GroupBox Grid.Row="2" Header="Data Picker" Visibility="{Binding TabVis}" Margin="0,8,0,0">
|
|
|
|
+ <ItemsControl Grid.Row="2" ItemsSource="{Binding Tabs}" Margin="8">
|
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
|
+ <DataTemplate>
|
|
|
|
+ <Button Background="Transparent" Margin="2"
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:SingleTracePlot, Mode=FindAncestor}, Path=DataContext.SelectTabCommand}"
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:SingleTracePlot, Mode=FindAncestor}, Path=DataContext.SelectTabCommand}"
|
|
CommandParameter="{Binding}">
|
|
CommandParameter="{Binding}">
|
|
- <TextBlock Text="{Binding}" Margin="0,2"></TextBlock>
|
|
|
|
- </Button>
|
|
|
|
- </DataTemplate>
|
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
|
- <ItemsControl.ItemsPanel>
|
|
|
|
- <ItemsPanelTemplate>
|
|
|
|
- <UniformGrid/>
|
|
|
|
- </ItemsPanelTemplate>
|
|
|
|
- </ItemsControl.ItemsPanel>
|
|
|
|
- </ItemsControl>
|
|
|
|
- </Grid>
|
|
|
|
|
|
+ <TextBlock Text="{Binding}" Margin="0,2"/>
|
|
|
|
+ </Button>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
|
+ <ItemsControl.ItemsPanel>
|
|
|
|
+ <ItemsPanelTemplate>
|
|
|
|
+ <UniformGrid/>
|
|
|
|
+ </ItemsPanelTemplate>
|
|
|
|
+ </ItemsControl.ItemsPanel>
|
|
|
|
+ </ItemsControl>
|
|
|
|
+ </GroupBox>
|
|
|
|
+
|
|
|
|
+ <GroupBox Grid.Row="4" Header="Alarms" Visibility="{Binding AlarmVis}" Margin="0,8,0,0">
|
|
|
|
+ <DataGrid Grid.Row="4" ItemsSource="{Binding Events}"
|
|
|
|
+ Margin="8"
|
|
|
|
+ IsReadOnly="True"
|
|
|
|
+ CanUserAddRows="False"
|
|
|
|
+ CanUserDeleteRows="False"
|
|
|
|
+ CanUserResizeRows="False"
|
|
|
|
+ CanUserSortColumns="False"
|
|
|
|
+ GridLinesVisibility="All"
|
|
|
|
+ HorizontalGridLinesBrush="{StaticResource DarkBorderColor}"
|
|
|
|
+ VerticalGridLinesBrush="{StaticResource DarkBorderColor}"
|
|
|
|
+ AutoGenerateColumns="False"
|
|
|
|
+ ColumnHeaderHeight="22"
|
|
|
|
+ RowHeight="22"
|
|
|
|
+ VerticalAlignment="Top"
|
|
|
|
+ BorderBrush="{StaticResource DarkBorderColor}"
|
|
|
|
+ Background="{StaticResource BackgroundColor}" >
|
|
|
|
+ <DataGrid.Columns>
|
|
|
|
+ <DataGridTemplateColumn Header="Time" Width="120">
|
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ <DataTemplate>
|
|
|
|
+ <TextBlock Text="{Binding Occur_Time, StringFormat=HH:mm:ss.f}"></TextBlock>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ </DataGridTemplateColumn>
|
|
|
|
+
|
|
|
|
+ <DataGridTemplateColumn Header="Source" MinWidth="64">
|
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ <DataTemplate>
|
|
|
|
+ <TextBlock Text="{Binding Source}"></TextBlock>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ </DataGridTemplateColumn>
|
|
|
|
+
|
|
|
|
+ <DataGridTemplateColumn Header="Level" Width="64">
|
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ <DataTemplate>
|
|
|
|
+ <TextBlock Text="{Binding Level}"></TextBlock>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ </DataGridTemplateColumn>
|
|
|
|
+
|
|
|
|
+ <DataGridTemplateColumn Header="Detail" Width="auto">
|
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ <DataTemplate>
|
|
|
|
+ <TextBlock Text="{Binding Description}" Margin="8,0"></TextBlock>
|
|
|
|
+ </DataTemplate>
|
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
|
+ </DataGridTemplateColumn>
|
|
|
|
+
|
|
|
|
+ </DataGrid.Columns>
|
|
|
|
+ </DataGrid>
|
|
|
|
+ </GroupBox>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
</UserControl>
|
|
</UserControl>
|