ParameterComparisonWindow.xaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <Window x:Class="NEIntelligentControl2.Windows.ParameterComparisonWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Windows"
  7. mc:Ignorable="d"
  8. Title="参数对比" Height="697" Width="1563" Background="#FF454545" WindowStyle="None" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" Closing="Window_Closing">
  9. <WindowChrome.WindowChrome>
  10. <WindowChrome/>
  11. </WindowChrome.WindowChrome>
  12. <Window.Resources>
  13. <Style TargetType="{x:Type ScrollBar}">
  14. <Setter Property="Background" Value="#77F0F8FF"/>
  15. <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
  16. <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
  17. <!--滚动条宽度-->
  18. <Setter Property="Width" Value="8"/>
  19. <Setter Property="MinWidth" Value="6"/>
  20. <Setter Property="Template">
  21. <Setter.Value>
  22. <ControlTemplate TargetType="{x:Type ScrollBar}">
  23. <!--滚动条背景色-->
  24. <Grid x:Name="Bg" Background="#77DDDDDD" SnapsToDevicePixels="true" Width="8">
  25. <Grid.RowDefinitions>
  26. <RowDefinition />
  27. </Grid.RowDefinitions>
  28. <Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}">
  29. <Track.DecreaseRepeatButton>
  30. <RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
  31. </Track.DecreaseRepeatButton>
  32. <Track.IncreaseRepeatButton>
  33. <RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
  34. </Track.IncreaseRepeatButton>
  35. <Track.Thumb>
  36. <Thumb Style="{StaticResource ScrollBarThumb}"/>
  37. </Track.Thumb>
  38. </Track>
  39. </Grid>
  40. <ControlTemplate.Triggers>
  41. <Trigger Property="IsEnabled" Value="false">
  42. <Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
  43. </Trigger>
  44. </ControlTemplate.Triggers>
  45. </ControlTemplate>
  46. </Setter.Value>
  47. </Setter>
  48. <Style.Triggers>
  49. <Trigger Property="Orientation" Value="Horizontal">
  50. <Setter Property="Width" Value="Auto"/>
  51. <Setter Property="MinWidth" Value="0"/>
  52. <Setter Property="Height" Value="6"/>
  53. <Setter Property="MinHeight" Value="6"/>
  54. <Setter Property="Background" Value="#77F0F8FF"/>
  55. <Setter Property="Template">
  56. <Setter.Value>
  57. <ControlTemplate TargetType="{x:Type ScrollBar}">
  58. <Grid x:Name="Bg" Background="#77DDDDDD" SnapsToDevicePixels="true">
  59. <Grid.ColumnDefinitions>
  60. <ColumnDefinition />
  61. </Grid.ColumnDefinitions>
  62. <Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}">
  63. <Track.DecreaseRepeatButton>
  64. <RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
  65. </Track.DecreaseRepeatButton>
  66. <Track.IncreaseRepeatButton>
  67. <RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
  68. </Track.IncreaseRepeatButton>
  69. <Track.Thumb>
  70. <Thumb Style="{StaticResource ScrollBarThumb}" />
  71. </Track.Thumb>
  72. </Track>
  73. </Grid>
  74. <ControlTemplate.Triggers>
  75. <Trigger Property="IsEnabled" Value="false">
  76. <Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
  77. </Trigger>
  78. </ControlTemplate.Triggers>
  79. </ControlTemplate>
  80. </Setter.Value>
  81. </Setter>
  82. </Trigger>
  83. </Style.Triggers>
  84. </Style>
  85. </Window.Resources>
  86. <Grid>
  87. <Grid.RowDefinitions>
  88. <RowDefinition Height="Auto"/>
  89. <RowDefinition/>
  90. </Grid.RowDefinitions>
  91. <Button Grid.ColumnSpan="5" Height="25" Width="51.8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="3,0" BorderBrush="{x:Null}" Foreground="{x:Null}" Padding="0,0,0,0" BorderThickness="0,0,0,0" Background="{x:Null}" Click="Button_Click" Tag="close" WindowChrome.IsHitTestVisibleInChrome="True">
  92. <Image Source="pack://application:,,,/智动启停;component/Images/PV/close.png"/>
  93. </Button>
  94. <WrapPanel Margin="10,10,50,10" x:Name="_WPTitle">
  95. <CheckBox Content="全部" Foreground="WhiteSmoke" Click="CheckBox_Click" Tag="all" WindowChrome.IsHitTestVisibleInChrome="True" Margin="3" FontSize="14" IsChecked="True"/>
  96. </WrapPanel>
  97. <Border Grid.Row="1" Margin="5" CornerRadius="7" Background="WhiteSmoke">
  98. <DataGrid x:Name="_DGMain" AutoGenerateColumns="False" Margin="5" Background="{x:Null}" BorderBrush="{x:Null}" IsReadOnly="True" HorizontalGridLinesBrush="#FF9A9A9A" VerticalGridLinesBrush="#FF9A9A9A" SelectionUnit="CellOrRowHeader">
  99. <DataGrid.Columns>
  100. <DataGridTextColumn Header="风机名称" Binding="{Binding Name}"/>
  101. </DataGrid.Columns>
  102. </DataGrid>
  103. </Border>
  104. </Grid>
  105. </Window>