123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <UserControl x:Class="NEIntelligentControl2.Views.MainWindow.StatusBar"
- 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:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:NEIntelligentControl2.Views.MainWindow"
- xmlns:am="clr-namespace:NEIntelligentControl2.Views.Alarm"
- mc:Ignorable="d"
- d:DesignHeight="36" d:DesignWidth="1920" Loaded="UserControl_Loaded">
- <UserControl.Resources>
- <SolidColorBrush x:Key="BackgroundColor" Color="#FF253887"/>
- <Style x:Key="AlarmText" TargetType="TextBlock">
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="Foreground" Value="WhiteSmoke"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Margin" Value="20,0"/>
- </Style>
- </UserControl.Resources>
- <Grid Background="{StaticResource BackgroundColor}">
- <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
- <Image Width="50" MouseLeftButtonUp="Image_MouseLeftButtonUp" Tag="menu" Visibility="Collapsed">
- <Image.Style>
- <Style TargetType="Image">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Source" Value="pack://application:,,,/智动启停;component/Images/StatusBar/menu_over.png"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Source" Value="pack://application:,,,/智动启停;component/Images/StatusBar/menu.png"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- <TextBlock x:Name="time" VerticalAlignment="Center" Margin="20,0,0,0" Foreground="WhiteSmoke"/>
- <Border Width="163" MouseLeftButtonUp="Border_MouseLeftButtonUp" Tag="recomend" Visibility="Collapsed">
- <Border.Style>
- <Style TargetType="Border">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/智动启停;component/Images/StatusBar/recommend.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/智动启停;component/Images/StatusBar/recommend_over.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3.2*"/>
- <ColumnDefinition/>
- <ColumnDefinition Width="0.5*"/>
- </Grid.ColumnDefinitions>
- <TextBlock x:Name="_TBSCount" Text="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="WhiteSmoke"/>
- </Grid>
- </Border>
- <Image MouseLeftButtonUp="Image_MouseLeftButtonUp" Tag="track" Width="116" Visibility="Collapsed">
- <Image.Style>
- <Style TargetType="Image">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Source" Value="pack://application:,,,/智动启停;component/Images/StatusBar/track_over.png"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Source" Value="pack://application:,,,/智动启停;component/Images/StatusBar/track.png"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
- <Grid x:Name="gdalarm" Width="595" HorizontalAlignment="Right" Margin="1" MouseEnter="Grid_MouseEnter" MouseLeftButtonUp="gdalarm_MouseLeftButtonUp" Visibility="Collapsed">
- <Grid.Background>
- <ImageBrush ImageSource="pack://application:,,,/智动启停;component/Images/StatusBar/alarm.png"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <TextBlock x:Name="_TBAlarmTime" Style="{StaticResource AlarmText}" Margin="110,0,0,0"/>
- <TextBlock x:Name="_TBAlarmName" Grid.Column="1" Style="{StaticResource AlarmText}"/>
- <TextBlock x:Name="_TBAlarmText" Grid.Column="2" Style="{StaticResource AlarmText}"/>
- <TextBlock x:Name="_TBAlarmType" Grid.Column="3" Style="{StaticResource AlarmText}"/>
- </Grid>
- <Popup Placement="Top" IsOpen="{Binding RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}, Path=IsMenuOpen}" MouseLeave="Popup_MouseLeave">
- <local:MainWindowMenu x:Name="_MWMMain"/>
- </Popup>
- <Popup x:Name="_PAlarm" Placement="Top" PlacementTarget="{Binding ElementName=gdalarm}" IsOpen="{Binding ElementName=_RFIVMain, Path=IsOpened}" StaysOpen="{Binding ElementName=_RFIVMain,Path=IsFixed}">
- <am:RealTimeFalutInfoView x:Name="_RFIVMain"/>
- </Popup>
- </Grid>
- </UserControl>
|