|
@@ -11,11 +11,9 @@
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<UserControl.Resources>
|
|
- <ResourceDictionary Source="/UICommon;component/Resources.xaml">
|
|
|
|
-
|
|
|
|
- </ResourceDictionary>
|
|
|
|
|
|
+ <ResourceDictionary Source="/UICommon;component/Resources.xaml"/>
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
- <Grid >
|
|
|
|
|
|
+ <Grid Margin="8">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="2"/>
|
|
<ColumnDefinition Width="2"/>
|
|
@@ -27,26 +25,26 @@
|
|
<RowDefinition Height="180"/>
|
|
<RowDefinition Height="180"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
- <Expander ExpandDirection="Right" IsExpanded="True" Margin="0,6" Padding="0,-2" TextElement.FontSize="14">
|
|
|
|
|
|
+ <Expander ExpandDirection="Right" IsExpanded="True" Margin="0,6" Padding="0,-2" TextElement.FontSize="14">
|
|
<Expander.Header>
|
|
<Expander.Header>
|
|
- <TextBlock Text="Data Selector" HorizontalAlignment="Center" Margin="4">
|
|
|
|
|
|
+ <TextBlock Text="数据编辑" HorizontalAlignment="Center" Margin="4">
|
|
<TextBlock.LayoutTransform>
|
|
<TextBlock.LayoutTransform>
|
|
<RotateTransform Angle="-90"/>
|
|
<RotateTransform Angle="-90"/>
|
|
</TextBlock.LayoutTransform>
|
|
</TextBlock.LayoutTransform>
|
|
</TextBlock>
|
|
</TextBlock>
|
|
</Expander.Header>
|
|
</Expander.Header>
|
|
- <Grid Background="White">
|
|
|
|
|
|
+ <Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="4"/>
|
|
<ColumnDefinition Width="4"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
- <GroupBox Header="时间范围" Margin="4,0" MinWidth="240">
|
|
|
|
- <ScrollViewer>
|
|
|
|
|
|
+ <GroupBox Header="时间范围" Margin="4,0" MinWidth="240" BorderBrush="{StaticResource DarkBorderColor}">
|
|
|
|
+ <ScrollViewer >
|
|
<ItemsControl ItemsSource="{Binding RecipeSteps}" Margin="4">
|
|
<ItemsControl ItemsSource="{Binding RecipeSteps}" Margin="4">
|
|
<ItemsControl.ItemTemplate>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
- <CheckBox Margin="0,2" VerticalAlignment="Center" IsChecked="{Binding Value.IsSelected, Mode=TwoWay}">
|
|
|
|
|
|
+ <CheckBox Margin="0,1" VerticalAlignment="Center" Style="{StaticResource StepCheckBox}" IsChecked="{Binding Value.IsSelected, Mode=TwoWay}">
|
|
<i:Interaction.Triggers>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Checked">
|
|
<i:EventTrigger EventName="Checked">
|
|
<prism:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:DBInfoTrace},
|
|
<prism:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:DBInfoTrace},
|
|
@@ -83,21 +81,22 @@
|
|
</ScrollViewer>
|
|
</ScrollViewer>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
|
|
|
- <GroupBox Grid.Column="2" Margin="4,0" Header="数据选择" MinWidth="240">
|
|
|
|
|
|
+ <GroupBox Grid.Column="2" Margin="4,0" Header="数据选择" MinWidth="240" BorderBrush="{StaticResource DarkBorderColor}">
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="4"/>
|
|
<RowDefinition Height="4"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
|
|
+
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <Button Grid.Row="0" Command="{Binding ReturnCommand}" Margin="4">返回上级</Button>
|
|
|
|
|
|
+ <Button Grid.Row="0" Style="{StaticResource FunctionButton}" Command="{Binding ReturnCommand}" Margin="4">返回上级</Button>
|
|
<ScrollViewer Grid.Row="2">
|
|
<ScrollViewer Grid.Row="2">
|
|
<ItemsControl ItemsSource="{Binding Hierachy}">
|
|
<ItemsControl ItemsSource="{Binding Hierachy}">
|
|
<ItemsControl.ItemTemplate>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
<Button Content="{Binding Key}" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"
|
|
<Button Content="{Binding Key}" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"
|
|
Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:DBInfoTrace}, Path=DataContext.SelectHierachyCommand}"
|
|
Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:DBInfoTrace}, Path=DataContext.SelectHierachyCommand}"
|
|
- CommandParameter="{Binding}" Margin="4" Padding="8,2"></Button>
|
|
|
|
|
|
+ CommandParameter="{Binding}" Margin="4" Padding="8,2" Background="Transparent"></Button>
|
|
<!--<TextBlock Text="{Binding Key}"></TextBlock>-->
|
|
<!--<TextBlock Text="{Binding Key}"></TextBlock>-->
|
|
</DataTemplate>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
@@ -119,15 +118,23 @@
|
|
<RowDefinition Height="0"/>
|
|
<RowDefinition Height="0"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<ContentControl Content="{Binding PlotControl, Mode=OneTime}" />
|
|
<ContentControl Content="{Binding PlotControl, Mode=OneTime}" />
|
|
-
|
|
|
|
|
|
+
|
|
<WrapPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" >
|
|
<WrapPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" >
|
|
- <Button Width="120" Height="24" Margin="4" Command="{Binding GeneratePlotCommand}">绘制图标</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">查看数据</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">重置缩放</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">横坐标 放大</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">横坐标 缩小</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">纵坐标 放大</Button>
|
|
|
|
- <Button Width="120" Height="24" Margin="4">纵坐标 缩小</Button>
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="12,0">
|
|
|
|
+ <Button Width="120" Height="24" Style="{StaticResource FunctionButton}" Command="{Binding GeneratePlotCommand}">绘制图标</Button>
|
|
|
|
+ <Button Width="120" Height="24" Margin="4" Style="{StaticResource FunctionButton}" >查看数据</Button>
|
|
|
|
+ </StackPanel>
|
|
|
|
+
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="12,0">
|
|
|
|
+ <Button Width="120" Height="24" Style="{StaticResource FunctionButton}" Command="{Binding ReScaleCommand}" CommandParameter="+">横坐标 放大</Button>
|
|
|
|
+ <Button Width="120" Height="24" Margin="4" Style="{StaticResource FunctionButton}" Command="{Binding ReScaleCommand}" CommandParameter="-">横坐标 缩小</Button>
|
|
|
|
+ </StackPanel>
|
|
|
|
+
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="12,0">
|
|
|
|
+ <Button Width="120" Height="24" Style="{StaticResource FunctionButton}" Command="{Binding ReScaleCommand}" CommandParameter="add">纵坐标 放大</Button>
|
|
|
|
+ <Button Width="120" Height="24" Margin="4" Style="{StaticResource FunctionButton}" Command="{Binding ReScaleCommand}" CommandParameter="minus">纵坐标 缩小</Button>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <Button Width="120" Height="24" Margin="12,0" Style="{StaticResource FunctionButton}" Command="{Binding ReScaleCommand}" CommandParameter="">重置缩放</Button>
|
|
</WrapPanel>
|
|
</WrapPanel>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
@@ -135,7 +142,7 @@
|
|
<Grid Grid.Row="2" Grid.ColumnSpan="3" Margin="2,0,6,2">
|
|
<Grid Grid.Row="2" Grid.ColumnSpan="3" Margin="2,0,6,2">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
- <ColumnDefinition Width="12"/>
|
|
|
|
|
|
+ <ColumnDefinition Width="16"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid >
|
|
<Grid >
|
|
@@ -146,7 +153,7 @@
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock VerticalAlignment="Center">左侧坐标轴</TextBlock>
|
|
<TextBlock VerticalAlignment="Center">左侧坐标轴</TextBlock>
|
|
- <Button HorizontalAlignment="Right" Width="80" Command="{Binding ClearCommand}" CommandParameter="L">清除</Button>
|
|
|
|
|
|
+ <Button HorizontalAlignment="Right" Width="80" Style="{StaticResource FunctionButton}" Command="{Binding ClearCommand}" CommandParameter="L">清除</Button>
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
|
|
<ScrollViewer >
|
|
<ScrollViewer >
|
|
<ItemsControl ItemsSource="{Binding Left}">
|
|
<ItemsControl ItemsSource="{Binding Left}">
|
|
@@ -166,7 +173,7 @@
|
|
CommandParameter="{Binding}">
|
|
CommandParameter="{Binding}">
|
|
<Line X1="0" Y1="0" X2="100" Y2="0" Stretch="Fill" Stroke="{Binding Value.Brush}" StrokeDashArray="{Binding Value.DashArray}" StrokeThickness="3"/>
|
|
<Line X1="0" Y1="0" X2="100" Y2="0" Stretch="Fill" Stroke="{Binding Value.Brush}" StrokeDashArray="{Binding Value.DashArray}" StrokeThickness="3"/>
|
|
</Button>
|
|
</Button>
|
|
- <Button Grid.Column="4" Background="Transparent"
|
|
|
|
|
|
+ <Button Grid.Column="4" Style="{StaticResource FunctionButton}"
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:DBInfoTrace, Mode=FindAncestor},
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:DBInfoTrace, Mode=FindAncestor},
|
|
Path=DataContext.RemoveLeftCommand}"
|
|
Path=DataContext.RemoveLeftCommand}"
|
|
CommandParameter="{Binding Key}">移除</Button>
|
|
CommandParameter="{Binding Key}">移除</Button>
|
|
@@ -184,7 +191,7 @@
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock VerticalAlignment="Center">右侧坐标轴</TextBlock>
|
|
<TextBlock VerticalAlignment="Center">右侧坐标轴</TextBlock>
|
|
- <Button HorizontalAlignment="Right" Width="80" Command="{Binding ClearCommand}" CommandParameter="R">清除</Button>
|
|
|
|
|
|
+ <Button HorizontalAlignment="Right" Width="80" Style="{StaticResource FunctionButton}" Command="{Binding ClearCommand}" CommandParameter="R">清除</Button>
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
|
|
<ScrollViewer>
|
|
<ScrollViewer>
|
|
<ItemsControl ItemsSource="{Binding Right}">
|
|
<ItemsControl ItemsSource="{Binding Right}">
|
|
@@ -204,7 +211,7 @@
|
|
CommandParameter="{Binding}">
|
|
CommandParameter="{Binding}">
|
|
<Line X1="0" Y1="0" X2="100" Y2="0" Stretch="Fill" Stroke="{Binding Value.Brush}" StrokeDashArray="{Binding Value.DashArray}" StrokeThickness="3"/>
|
|
<Line X1="0" Y1="0" X2="100" Y2="0" Stretch="Fill" Stroke="{Binding Value.Brush}" StrokeDashArray="{Binding Value.DashArray}" StrokeThickness="3"/>
|
|
</Button>
|
|
</Button>
|
|
- <Button Grid.Column="4" Background="Transparent"
|
|
|
|
|
|
+ <Button Grid.Column="4" Style="{StaticResource FunctionButton}"
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:DBInfoTrace, Mode=FindAncestor},
|
|
Command="{Binding RelativeSource={RelativeSource AncestorType=local:DBInfoTrace, Mode=FindAncestor},
|
|
Path=DataContext.RemoveRightCommand}"
|
|
Path=DataContext.RemoveRightCommand}"
|
|
CommandParameter="{Binding Key}">移除</Button>
|
|
CommandParameter="{Binding Key}">移除</Button>
|