<UserControl x:Class="NEIntelligentControl2.Views.Infos.InverterPoint"
             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.Infos"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="158" Margin="0,6,0,0">
    <Border CornerRadius="7" Background="#FF232D38" MinHeight="41" MouseLeftButtonDown="Border_MouseLeftButtonDown">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=TagInfo.Name}" VerticalAlignment="Center" Foreground="#FFD1D1D1" HorizontalAlignment="Right" FontSize="17"/>
            <Border Grid.Column="1" VerticalAlignment="Center" Background="#FF19232C" CornerRadius="11" Margin="5" Padding="5,2">
                <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=PointValue}" Foreground="WhiteSmoke" HorizontalAlignment="Right" FontSize="16" VerticalAlignment="Center"/>
            </Border>
            <TextBlock Grid.Column="2" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=TagInfo.Unit}" VerticalAlignment="Center" Foreground="#FF0777D8" FontSize="17"/>
        </Grid>
    </Border>
</UserControl>
