45 lines
3.0 KiB
XML
45 lines
3.0 KiB
XML
<base:UCKeyValueNumber x:Class="AuroraUIComponent.UserControls.UCKeyValueMonitor"
|
|
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:AuroraUIComponent.UserControls"
|
|
xmlns:base="clr-namespace:AuroraUIComponent.UserControls.KeyValueBase"
|
|
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="50" d:DesignWidth="500" FontSize="12">
|
|
<UserControl.Resources>
|
|
<local:MouseVisibilityConverter x:Key="convVisibility"/>
|
|
<local:PaddingConverter x:Key="convPadding"/>
|
|
</UserControl.Resources>
|
|
<Border x:Name="BorderParent" CornerRadius="{Binding CornorRadius, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Background="{Binding ControlBackground, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Padding="{Binding ControlPadding, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
|
<Grid x:Name="GridParent">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock x:Name="TextKey" Grid.Column="0"
|
|
Text="{Binding KeyText, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
FontSize="{Binding KeyTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Foreground="{Binding KeyTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}, FallbackValue=Black}"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center"/>
|
|
<Grid Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Name="TextValue" VerticalAlignment="Center" HorizontalAlignment="Right"
|
|
FontSize="{Binding ValueTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Foreground="{Binding ValueTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}, FallbackValue=Black}"/>
|
|
<TextBlock Grid.Column="1" FontSize="{Binding ValueTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
HorizontalAlignment="Right"
|
|
Foreground="{Binding ValueTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}, FallbackValue=Black}"
|
|
Text="{Binding Unit, RelativeSource={RelativeSource AncestorType=UserControl}}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</base:UCKeyValueNumber>
|