12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <UserControl x:Class="NEIntelligentControl2.Views.Matrix.PVStationBlock"
- 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.Matrix"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <Style x:Key="TitleSytle" TargetType="TextBlock">
- <Setter Property="Background" Value="DarkGray"/>
- <Setter Property="Padding" Value="14,3"/>
- </Style>
- </UserControl.Resources>
- <Border Margin="0,1" BorderBrush="#FF575757" BorderThickness="1">
- <Grid Margin="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Background="#FF99B4D1">
- <TextBlock Background="SeaShell" Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=StationInfo.FullName}" MinWidth="100" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="接入台数" Style="{StaticResource TitleSytle}"/>
- <TextBlock Background="White" Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountTotal}" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="并网" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountConnect}" Style="{StaticResource TitleSytle}" Background="#FFC8EAFF"/>
- <TextBlock Text="待机" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountStandby}" Style="{StaticResource TitleSytle}" Background="#FFCFF1E8"/>
- <TextBlock Text="故障" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountFault}" Style="{StaticResource TitleSytle}" Background="#FFDB3333"/>
- <TextBlock Text="维护" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountMaintain}" Style="{StaticResource TitleSytle}" Background="#FFFF720E"/>
- <TextBlock Text="限电" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountPowerRestriction}" Style="{StaticResource TitleSytle}" Background="#FF7E7935"/>
- <TextBlock Text="离线" Style="{StaticResource TitleSytle}"/>
- <TextBlock Text="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=CountOffline}" Background="#FFF4F4F4" Style="{StaticResource TitleSytle}"/>
- </StackPanel>
- <UniformGrid x:Name="_UGMain" Grid.Row="1" Columns="18" MinHeight="70"/>
- </Grid>
- </Border>
- </UserControl>
|