123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <Window x:Class="NEIntelligentControl2.Windows.ParameterComparisonWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:NEIntelligentControl2.Windows"
- mc:Ignorable="d"
- Title="参数对比" Height="697" Width="1563" Background="#FF454545" WindowStyle="None" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" Closing="Window_Closing">
- <WindowChrome.WindowChrome>
- <WindowChrome/>
- </WindowChrome.WindowChrome>
- <Window.Resources>
- <Style TargetType="{x:Type ScrollBar}">
- <Setter Property="Background" Value="#77F0F8FF"/>
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
- <!--滚动条宽度-->
- <Setter Property="Width" Value="8"/>
- <Setter Property="MinWidth" Value="6"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <!--滚动条背景色-->
- <Grid x:Name="Bg" Background="#77DDDDDD" SnapsToDevicePixels="true" Width="8">
- <Grid.RowDefinitions>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource VerticalScrollBarPageButton}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Horizontal">
- <Setter Property="Width" Value="Auto"/>
- <Setter Property="MinWidth" Value="0"/>
- <Setter Property="Height" Value="6"/>
- <Setter Property="MinHeight" Value="6"/>
- <Setter Property="Background" Value="#77F0F8FF"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollBar}">
- <Grid x:Name="Bg" Background="#77DDDDDD" SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}">
- <Track.DecreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageLeftCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Command="{x:Static ScrollBar.PageRightCommand}" Style="{StaticResource HorizontalScrollBarPageButton}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource ScrollBarThumb}" />
- </Track.Thumb>
- </Track>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <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">
- <Image Source="pack://application:,,,/智动启停;component/Images/PV/close.png"/>
- </Button>
- <WrapPanel Margin="10,10,50,10" x:Name="_WPTitle">
- <CheckBox Content="全部" Foreground="WhiteSmoke" Click="CheckBox_Click" Tag="all" WindowChrome.IsHitTestVisibleInChrome="True" Margin="3" FontSize="14" IsChecked="True"/>
- </WrapPanel>
- <Border Grid.Row="1" Margin="5" CornerRadius="7" Background="WhiteSmoke">
- <DataGrid x:Name="_DGMain" AutoGenerateColumns="False" Margin="5" Background="{x:Null}" BorderBrush="{x:Null}" IsReadOnly="True" HorizontalGridLinesBrush="#FF9A9A9A" VerticalGridLinesBrush="#FF9A9A9A" SelectionUnit="CellOrRowHeader">
- <DataGrid.Columns>
- <DataGridTextColumn Header="风机名称" Binding="{Binding Name}"/>
- </DataGrid.Columns>
- </DataGrid>
- </Border>
- </Grid>
- </Window>
|