PgHeatList.xaml 60.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812
<Page x:Class="FLY.FeedbackRenZiJia.UI.Client.PgHeatList"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
      xmlns:local="clr-namespace:FLY.FeedbackRenZiJia.UI.Client"
      xmlns:misc="clr-namespace:Misc;assembly=MISC"
      mc:Ignorable="d" 
      
      d:DesignHeight="900" d:DesignWidth="960"
      Loaded="Page_Loaded" Unloaded="Page_Unloaded" Background="White"
      Title="Page_HeatList">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <Style x:Key="TabControlStyle_ABC" TargetType="{x:Type TabControl}">
                <Setter Property="Padding" Value="2"/>
                <Setter Property="HorizontalContentAlignment" Value="Center"/>
                <Setter Property="VerticalContentAlignment" Value="Center"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabControl}">
                            <Grid x:Name="templateRoot" ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition x:Name="ColumnDefinition0"/>
                                    <ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition x:Name="RowDefinition0" Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition x:Name="RowDefinition1" Height="*"/>
                                </Grid.RowDefinitions>
                                <TabPanel x:Name="headerPanel" VerticalAlignment="Bottom" Background="Transparent" Grid.Column="0" IsItemsHost="true" Margin="200,0,0,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/>
                                <Grid Height="110"/>
                                <Grid Panel.ZIndex="1"  Grid.Row="1" >
                                    <Border Background="Black" Height="2" VerticalAlignment="Bottom" />
                                </Grid>
                                <Border x:Name="contentPanel" Background="{TemplateBinding Background}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="2" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
                                    <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="TextElement.Foreground" TargetName="templateRoot" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <SolidColorBrush x:Key="Item.MouseOver.Background" Color="Transparent"/>
            <SolidColorBrush x:Key="Item.MouseOver.Foreground" Color="White"/>
            <SolidColorBrush x:Key="Item.MouseOver.Border" Color="Black"/>

            <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#FF3B3B3B"/>
            <SolidColorBrush x:Key="Item.SelectedInactive.Foreground" Color="White"/>
            <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="Black"/>

            <SolidColorBrush x:Key="Item.SelectedActive.Background" Color="White"/>
            <SolidColorBrush x:Key="Item.SelectedActive.Foreground" Color="Black"/>
            <SolidColorBrush x:Key="Item.SelectedActive.Border" Color="Black"/>
            
            <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
                <Setter Property="FocusVisualStyle">
                    <Setter.Value>
                        <Style>
                            <Setter Property="Control.Template">
                                <Setter.Value>
                                    <ControlTemplate>
                                        <Rectangle Margin="2" SnapsToDevicePixels="True" 
                                                   Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" 
                                                   StrokeThickness="1" StrokeDashArray="1 2"/>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </Setter.Value>
                </Setter>
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="Foreground" Value="{StaticResource Item.SelectedInactive.Foreground}"/>
                <Setter Property="Background" Value="{StaticResource Item.SelectedInactive.Background}"/>
                <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedInactive.Border}"/>
                <Setter Property="Margin" Value="0"/>
                <Setter Property="Padding" Value="50,10"/>
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Grid x:Name="templateRoot" SnapsToDevicePixels="True">
                                <Border x:Name="mainBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" Background="{TemplateBinding Background}" Margin="0"/>

                                <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"/>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
                                    </MultiDataTrigger.Conditions>
                                    <Setter Property="Background" Value="{StaticResource Item.MouseOver.Background}"/>
                                    <Setter Property="Foreground" Value="{StaticResource Item.MouseOver.Foreground}"/>
                                    <Setter Property="BorderBrush" Value="{StaticResource Item.MouseOver.Border}"/>
                                </MultiDataTrigger>

                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
                                    </MultiDataTrigger.Conditions>
                                    <Setter Property="Background" Value="{StaticResource Item.SelectedInactive.Background}"/>
                                    <Setter Property="Foreground" Value="{StaticResource Item.SelectedInactive.Foreground}"/>
                                    <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedInactive.Border}"/>
                                </MultiDataTrigger>
                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
                                    </MultiDataTrigger.Conditions>
                                    <Setter Property="Panel.ZIndex" Value="1"/>
                                    <Setter Property="Margin" Value="-5,-20,-5,0"/>
                                    <Setter Property="Background" Value="{StaticResource Item.SelectedActive.Background}"/>
                                    <Setter Property="Foreground" Value="{StaticResource Item.SelectedActive.Foreground}"/>
                                    <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedActive.Border}"/>
                                </MultiDataTrigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>


            <Style BasedOn="{StaticResource ButtonStyle_empty}" TargetType="Button" >
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="Background" Value="White" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="VerticalAlignment" Value="Bottom" />
                <Setter Property="Margin" Value="5" />
            </Style>
            <Style TargetType="Path" >
                <Setter Property="Fill" Value="{StaticResource Color_theme_activity}" />
                <Setter Property="Stretch" Value="Fill" />
                <Setter Property="Height" Value="50" />
                <Setter Property="Width" Value="50" />
                <Setter Property="SnapsToDevicePixels" Value="True"/>
            </Style>
            <Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeader}" x:Key="TextBlockStyle_FieldHeader2">
                <Setter Property="FontSize" Value="15" />
            </Style>
            <Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldContent}" x:Key="TextBlockStyle_FieldContent2">
                <Setter Property="FontSize" Value="25" />
            </Style>
            <Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeaderEditable}" x:Key="TextBlockStyle_FieldHeaderEditable2">
                <Setter Property="FontSize" Value="15" />
            </Style>
            <Style TargetType="TextBox" BasedOn="{StaticResource TextBoxStyle_FieldContent}" x:Key="TextBoxStyle_FieldContent2">
                <Setter Property="FontSize" Value="25" />
            </Style>
            <local:Bookmark2StringValueConverter x:Key="bm2str_conv"/>

            <x:Array x:Key="snaps" Type="local:SnapShot">
                <local:SnapShot Bookmark="0" IsFocused="True"/>
                <local:SnapShot Bookmark="12"/>
                <local:SnapShot Bookmark="3"/>
            </x:Array>
            <local:HeatEffectConverter x:Key="heconv"/>
        </ResourceDictionary>
    </Page.Resources>
    <Grid >
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal" Background="{StaticResource Background_Title}" >
                <Button Style="{StaticResource ButtonStyle_back2}" Click="button_back_Click" />
            </StackPanel>
        </StackPanel >

        <TabControl Style="{DynamicResource TabControlStyle_ABC}">
            <TabItem Header="选点" Style="{DynamicResource TabItemStyle1}" x:Name="tabitem_heat2">
                <Grid>

                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <WindowsFormsHost >
                        <Chr:Chart x:Name="chart1" />
                    </WindowsFormsHost>
                    <WindowsFormsHost Grid.Column="1">
                        <Chr:Chart x:Name="chart2" />
                    </WindowsFormsHost>
                    <ScrollViewer Grid.Row="1" >
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal">
                                <StackPanel Orientation="Vertical" Margin="5">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="图1记录点" />
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" MinWidth="100" Text="{Binding Bookmark1}"  />
                                    </StackPanel>
                                </StackPanel>
                                <Button Click="button_pre1_Click" >
                                    <Path Data="{StaticResource Geometry_arrow-left-bold-circle}" />
                                </Button>
                                <Button Click="button_next1_Click" >
                                    <Path Data="{StaticResource Geometry_arrow-right-bold-circle}" />
                                </Button>
                                <StackPanel Orientation="Horizontal" Margin="5" x:Name="stackpanel_bmRange">
                                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="范围:" />
                                    <Viewbox MaxHeight="30">
                                        <StackPanel Orientation="Horizontal" >
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="(" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" Text="{Binding FirstBM}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text=")-(" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" Text="{Binding LastBM}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text=")" />
                                        </StackPanel>
                                    </Viewbox>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" x:Name="stackpanel_flydata1" Visibility="{Binding IsVaild,Converter={StaticResource visbilityconv}}" >
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转方向" />
                                        <StackPanel Orientation="Horizontal">
                                            <Grid>
                                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="正" Visibility="{Binding Direction, Mode=OneWay, Converter={StaticResource e2visconv},  ConverterParameter={x:Static misc:DIRECTION.FORWARD}}" />
                                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="反" Visibility="{Binding Direction, Mode=OneWay, Converter={StaticResource e2visconv},  ConverterParameter={x:Static misc:DIRECTION.BACKWARD}}" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="测量时间" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding Time,StringFormat={}{0:HH:mm:ss}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text=" - "/>
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding EndTime,StringFormat={}{0:HH:mm:ss}}" />
                                        </StackPanel>
                                    </StackPanel>

                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转时间" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding RotatePeriod, Converter={StaticResource ResourceKey=timespanconv}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="min/R" FontSize="15"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="加热时间" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding HTime,StringFormat={}{0:HH:mm:ss}}" />
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="复位区号" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding OrgBoltNo}" />
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转角度" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding RAngle,StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="°" VerticalAlignment="Top"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="膜距离" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding FilmLength,StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5" Visibility="{Binding IsTakedEffect,Converter={StaticResource visbilityconv}, ConverterParameter=HiddenWhenTrue}">
                                        <TextBlock Text="未起效" Foreground="Red" />
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </StackPanel>
                    </ScrollViewer>
                    <ScrollViewer Grid.Row="1" Grid.Column="1" >
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal">
                                <StackPanel Orientation="Vertical" Margin="5">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="图2记录点" />
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" MinWidth="100" Text="{Binding Bookmark2}"  />
                                    </StackPanel>
                                </StackPanel>
                                <Button Click="button_pre2_Click" >
                                    <Path Data="{StaticResource Geometry_arrow-left-bold-circle}" />
                                </Button>
                                <Button Click="button_next2_Click" >
                                    <Path Data="{StaticResource Geometry_arrow-right-bold-circle}" />
                                </Button>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" x:Name="stackpanel_flydata2" Visibility="{Binding IsVaild,Converter={StaticResource visbilityconv}}" >
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转方向" />
                                        <StackPanel Orientation="Horizontal">
                                            <Grid>
                                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="正" Visibility="{Binding Direction, Mode=OneWay, Converter={StaticResource e2visconv},  ConverterParameter={x:Static misc:DIRECTION.FORWARD}}" />
                                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="反" Visibility="{Binding Direction, Mode=OneWay, Converter={StaticResource e2visconv},  ConverterParameter={x:Static misc:DIRECTION.BACKWARD}}" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="测量开始" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding Time,StringFormat={}{0:HH:mm:ss}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text=" - "/>
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding EndTime,StringFormat={}{0:HH:mm:ss}}" />
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转时间" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding RotatePeriod, Converter={StaticResource ResourceKey=timespanconv}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="min/R" FontSize="15"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="加热时间" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding HTime,StringFormat={}{0:HH:mm:ss}}" />
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="复位区号" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding OrgBoltNo}" />
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="旋转角度" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding RAngle,StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="°" VerticalAlignment="Top"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="膜距离" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent2}" Text="{Binding FilmLength,StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="m"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5" Visibility="{Binding IsTakedEffect,Converter={StaticResource visbilityconv}, ConverterParameter=HiddenWhenTrue}">
                                        <TextBlock Text="未起效" Foreground="Red" />
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </TabItem>
            <TabItem Header="偏差" Style="{DynamicResource TabItemStyle1}" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition Width="auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto"/>
                                <RowDefinition />
                            </Grid.RowDefinitions>

                            <GroupBox Header="状态" FontSize="20">

                                <StackPanel Orientation="Horizontal" >
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="相关性" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" Text="{Binding CurrHeatThickR, StringFormat={}{0:F2}}" />
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="厚度极差" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" Text="{Binding CurrMaxMin, StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="%" />
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5">
                                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader2}" Text="比例" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" Text="{Binding CurrFactor, StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="输出/厚度" FontSize="15"/>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </GroupBox>
                            <WindowsFormsHost Grid.Row="1" >
                                <Chr:Chart x:Name="chart3" />
                            </WindowsFormsHost>

                        </Grid>
                        <GroupBox Header="调整" FontSize="20" Grid.Column="1" >
                            <ScrollViewer>
                                <StackPanel Orientation="Vertical">
                                    <StackPanel Orientation="Vertical" Margin="5" x:Name="stackpanel_heateffectcurve">
                                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="加热效果" />
                                        <StackPanel Orientation="Horizontal">
                                            <TextBox Style="{StaticResource TextBoxStyle_FieldContent2}" Text="{Binding HeatEffectCurve,Converter={StaticResource heconv}}"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical" Margin="5" >
                                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="图反向" />
                                        <ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsReversed}"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <StackPanel Orientation="Vertical" Margin="5">
                                            <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="比例因子" />
                                            <StackPanel Orientation="Horizontal">
                                                <TextBox Style="{StaticResource TextBoxStyle_FieldContent2}" Text="{Binding Factor, StringFormat={}{0:F1}}"/>
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="输出/厚度" FontSize="15" />
                                            </StackPanel>
                                        </StackPanel>
                                        <Button Click="button_factor_collapse_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-collapse-horizontal}" >
                                                <Path.RenderTransform>
                                                    <RotateTransform Angle="90" CenterX="25" CenterY="25"/>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Button>
                                        <Button Click="button_factor_expand_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-expand-horizontal}" >
                                                <Path.RenderTransform>
                                                    <RotateTransform Angle="90" CenterX="25" CenterY="25"/>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Button>
                                    </StackPanel>

                                    <StackPanel Orientation="Horizontal">
                                        <StackPanel Orientation="Vertical" Margin="5">
                                            <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="复位区号" />

                                            <StackPanel Orientation="Horizontal">
                                                <TextBox Style="{StaticResource TextBoxStyle_FieldContent2}" Text="{Binding OrgBoltNo}"  />
                                            </StackPanel>
                                        </StackPanel>
                                        <Button Click="button_left_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-left}" />
                                        </Button>
                                        <Button Click="button_right_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-right}" />
                                        </Button>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <StackPanel Orientation="Vertical" Margin="5">
                                            <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="旋转角度" />

                                            <StackPanel Orientation="Horizontal">
                                                <TextBox Style="{StaticResource TextBoxStyle_FieldContent2}" Text="{Binding RAngle}"  />
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="°" VerticalAlignment="Top" />
                                            </StackPanel>
                                        </StackPanel>
                                        <Button Click="button_collapse_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-collapse-horizontal}" />
                                        </Button>
                                        <Button Click="button_expand_Click" >
                                            <Path Data="{StaticResource Geometry_arrow-expand-horizontal}" />
                                        </Button>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <Button Click="button_auto_Click" Margin="10">
                                            <StackPanel Orientation="Vertical">
                                                <Path Data="{StaticResource Geometry_auto-fix}" />
                                                <TextBlock Text="自动" HorizontalAlignment="Center" />
                                            </StackPanel>
                                        </Button>
                                        <StackPanel Orientation="Horizontal" x:Name="stackpanel_snap_opt" >
                                            <Button Margin="10" Click="button_setsnap_Click" Visibility="{Binding IsIdx0,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
                                                <StackPanel Orientation="Vertical">
                                                    <Path Data="{StaticResource Geometry_camera}" Width="60"/>
                                                    <TextBlock Text="快照" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </Button>
                                            <Button Margin="10" Click="button_delsnap_Click" Visibility="{Binding IsIdx0,Converter={StaticResource visbilityconv},ConverterParameter=CollapsedWhenTrue}">
                                                <StackPanel Orientation="Vertical">
                                                    <Path Data="{StaticResource Geometry_delete-circle}" />

                                                    <TextBlock Text="删除" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </Button>
                                        </StackPanel>

                                    </StackPanel>

                                    <GroupBox Header="分区表" FontSize="20" Grid.Row="2" >
                                        <StackPanel Orientation="Vertical">
                                            <StackPanel Orientation="Horizontal">
                                                <StackPanel Orientation="Vertical" Margin="5" x:Name="stackpanel_isUsedBoltMap">
                                                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable2}" Text="使用分区表" />
                                                    <ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsUsedMap}"/>
                                                </StackPanel>
                                                <Button Margin="10" Click="button_testmap_Click" >
                                                    <StackPanel Orientation="Vertical">
                                                        <Path Data="{StaticResource Geometry_play-circle}" />
                                                        <TextBlock Text="测试" HorizontalAlignment="Center" />
                                                    </StackPanel>
                                                </Button>
                                                <Button Margin="10" Click="button_delmap_Click" >
                                                    <StackPanel Orientation="Vertical">
                                                        <Path Data="{StaticResource Geometry_delete-circle}" />
                                                        <TextBlock Text="删除" HorizontalAlignment="Center" />
                                                    </StackPanel>
                                                </Button>
                                            </StackPanel>

                                            <DataGrid AutoGenerateColumns="False" Name="datagrid" MinWidth="204" MinHeight="100" TextBlock.FontSize="18" TextBlock.FontWeight="Normal">
                                                <DataGrid.Columns>
                                                    <DataGridTextColumn Header="原始No" Binding="{Binding OldNo}" Width="100"/>
                                                    <DataGridTextColumn Header="新No" Binding="{Binding NewNo}" Width="100"/>
                                                </DataGrid.Columns>
                                            </DataGrid>
                                        </StackPanel>
                                        
                                    </GroupBox>
                                </StackPanel>
                            </ScrollViewer>


                        </GroupBox>
                    </Grid>
                    <Grid Grid.Row="1" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition Width="auto"/>
                        </Grid.ColumnDefinitions>
                        <ItemsControl Name="items_snapshot" ItemsSource="{StaticResource snaps}" MinHeight="50" >
                            <ItemsControl.Resources>

                            </ItemsControl.Resources>
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <WrapPanel Orientation="Horizontal" />
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <Button 
                                        Content="{Binding Bookmark,Converter={StaticResource bm2str_conv}}" 
                                        Tag="{Binding .}"
                                                
                                        Width="auto" Click="button_snap_Click">
                                            <Button.Style>
                                                <Style TargetType="Button">
                                                    <Setter Property="Foreground" Value="{StaticResource Item.SelectedInactive.Foreground}"/>
                                                    <Setter Property="Background" Value="{StaticResource Item.SelectedInactive.Background}"/>
                                                    <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedInactive.Border}"/>
                                                    <Setter Property="BorderThickness" Value="0"/>
                                                    <Setter Property="Margin" Value="2"/>
                                                    <Setter Property="Padding" Value="20,5"/>
                                                    <Setter Property="Template">
                                                        <Setter.Value>
                                                            <ControlTemplate TargetType="{x:Type Button}">
                                                                <Border Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                                                    <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" />
                                                                </Border>

                                                                <ControlTemplate.Triggers>
                                                                    <Trigger Property="IsKeyboardFocused" Value="true">
                                                                    </Trigger>
                                                                    <Trigger Property="IsEnabled" Value="false">
                                                                    </Trigger>
                                                                    <Trigger Property="IsPressed" Value="true">
                                                                        <Setter Property="Opacity" Value="0.5"/>
                                                                    </Trigger>
                                                                </ControlTemplate.Triggers>
                                                            </ControlTemplate>
                                                        </Setter.Value>
                                                    </Setter>
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Binding IsFocused}" Value="True">
                                                            <Setter Property="Foreground" Value="{StaticResource Item.SelectedActive.Foreground}"/>
                                                            <Setter Property="Background" Value="{StaticResource Item.SelectedActive.Background}"/>
                                                            <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedActive.Border}"/>
                                                            <Setter Property="BorderThickness" Value="2"/>
                                                        </DataTrigger>
                                                        <!--<DataTrigger Binding="{Binding IsFocusd}" Value="False">
                                                        <Setter Property="Foreground" Value="{StaticResource Item.SelectedInactive.Foreground}"/>
                                                        <Setter Property="Background" Value="{StaticResource Item.SelectedInactive.Background}"/>
                                                        <Setter Property="BorderBrush" Value="{StaticResource Item.SelectedInactive.Border}"/>
                                                    </DataTrigger>-->
                                                    </Style.Triggers>
                                                </Style>
                                            </Button.Style>
                                        </Button>
                                    </Grid>

                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                        </ItemsControl>

                        <Button Margin="10" Click="button_applymap_Click" >
                            <StackPanel Orientation="Vertical">
                                <Path Data="{StaticResource Geometry_check-circle}" />
                                <TextBlock Text="应用" HorizontalAlignment="Center" FontSize="20"/>
                            </StackPanel>
                        </Button>
                    </Grid>
                    

                </Grid>
            </TabItem>
            <TabItem Header="分区记录" Style="{DynamicResource TabItemStyle1}" FontSize="25">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition Width="auto"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel Orientation="Horizontal" Name="stackpanel_boltheat">
                            <StackPanel Orientation="Vertical" Margin="5">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="查看区号" />

                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding GetNo}"  />
                                </StackPanel>
                            </StackPanel>
                            <Button Click="button_preno_Click" >
                                <Path Data="{StaticResource Geometry_arrow-left}" />
                            </Button>
                            <Button Click="button_nextno_Click" >
                                <Path Data="{StaticResource Geometry_arrow-right}" />
                            </Button>
                        </StackPanel>
                        <Button Name="button_download"  Margin="20,5" Click="button_boltheat_download_Click">
                            <Grid>
                                <Path Data="{StaticResource Geometry_progress-download}" Stretch="Fill" Height="50" Width="50" SnapsToDevicePixels="True"/>
                                <ed:Arc Width="53" Height="53"
                                    ArcThickness="8" 
                                    ArcThicknessUnit="Pixel"
                                    StartAngle="0"
                                    EndAngle="3"  
                                    Fill="White" Stretch="None"  >
                                    <ed:Arc.Style>
                                        <Style TargetType="ed:Arc">
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding IsBoltHeatLoading}" Value="True">
                                                    <DataTrigger.EnterActions>
                                                        <BeginStoryboard>
                                                            <Storyboard RepeatBehavior="Forever" >
                                                                <DoubleAnimation BeginTime="0:0:0" Storyboard.TargetProperty="EndAngle" From="0" To="360" Duration="00:00:03" />
                                                                <DoubleAnimation BeginTime="0:0:3" Storyboard.TargetProperty="StartAngle" From="0" To="360" Duration="00:00:01" />
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </DataTrigger.EnterActions>

                                                    <DataTrigger.ExitActions>
                                                        <BeginStoryboard>
                                                            <Storyboard>
                                                                <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="EndAngle" From="0" To="3" />
                                                                <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="StartAngle" From="0" To="0"/>
                                                                <!--AccelerationRatio="0.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"/>-->
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </DataTrigger.ExitActions>

                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </ed:Arc.Style>
                                </ed:Arc>
                            </Grid>


                        </Button>
                        <Button Grid.Column="1" Margin="10" Click="button_clearBoltHeat_Click" >
                            <StackPanel Orientation="Vertical">
                                <Path Data="{StaticResource Geometry_delete-circle}" />

                                <TextBlock Text="删除" HorizontalAlignment="Center" />
                            </StackPanel>
                        </Button>
                    </Grid>
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <GroupBox Header="稳定列表">
                            <DataGrid x:Name="grid_stable"  AutoGenerateColumns="False" IsReadOnly="True" >
                                <DataGrid.CellStyle>
                                    <Style TargetType="DataGridCell">
                                        <Setter Property="FontSize" Value="20"/>
                                    </Style>
                                </DataGrid.CellStyle>
                                <DataGrid.Columns>
                                    <DataGridTextColumn Binding="{Binding Cnt}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="数量" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding ThickDiff}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="厚度差" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding ThickMid}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="厚度" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding HeatDiff}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="加热差" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding HeatMid}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="加热" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                </DataGrid.Columns>
                            </DataGrid>
                        </GroupBox>
                        <GroupBox Grid.Column="1">
                            <GroupBox.Header>
                                <TextBlock Text="不稳定列表" Foreground="#FFCB0000" />
                            </GroupBox.Header>
                            <DataGrid x:Name="grid_unstable"  AutoGenerateColumns="False" IsReadOnly="True" >
                                <DataGrid.CellStyle>
                                    <Style TargetType="DataGridCell">
                                        <Setter Property="FontSize" Value="20"/>
                                    </Style>
                                </DataGrid.CellStyle>
                                <DataGrid.Columns>
                                    <DataGridTextColumn Binding="{Binding Cnt}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="数量" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding ThickDiff}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="厚度差" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding ThickMid}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="厚度" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding HeatDiff}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="加热差" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                    <DataGridTextColumn Binding="{Binding HeatMid}" >
                                        <DataGridTextColumn.Header>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="加热" />
                                            </StackPanel>
                                        </DataGridTextColumn.Header>
                                    </DataGridTextColumn>
                                </DataGrid.Columns>
                            </DataGrid>
                        </GroupBox>
                    </Grid>
                </Grid>
            </TabItem>
        </TabControl>

    </Grid>
</Page>