2026-01-26 18:56:53 +09:00

41 lines
2.6 KiB
XML

<base:UCKeyValueBase x:Class="AuroraUIComponent.UserControls.UCKeyValueVerticalString"
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:view="clr-namespace:Aurora.View;assembly=Aurora"
mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="500" FontSize="12">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<view:SharedResourceDictionary Source="../../Resources/IconsDic.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="GridParent">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Background="{Binding KeyTextBgColor, RelativeSource={RelativeSource AncestorType=UserControl}}" Margin="2">
<TextBlock x:Name="TextKey" Grid.Row="0" Margin="5 0"
Text="{Binding KeyText, RelativeSource={RelativeSource AncestorType=UserControl}}"
FontSize="{Binding KeyTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
Foreground="{Binding KeyTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}}"
VerticalAlignment="Center"/>
</Border>
<TextBox Grid.Row="1" Name="TextValue"
Margin="2" VerticalContentAlignment="Center" Height="Auto"
HorizontalContentAlignment="{Binding ValueHorizontalAlignment, RelativeSource={RelativeSource AncestorType=UserControl}}"
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=UserControl}}"
Text="{Binding ValueText, RelativeSource={RelativeSource AncestorType=UserControl}}"
FontSize="{Binding ValueTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
Foreground="{Binding ValueTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}}"
Background="{Binding ValueTextBgColor, RelativeSource={RelativeSource AncestorType=UserControl}}"/>
</Grid>
</base:UCKeyValueBase>