V1版本
This commit is contained in:
39
CapMachine.Shared/Controls/ValueShow.xaml
Normal file
39
CapMachine.Shared/Controls/ValueShow.xaml
Normal file
@@ -0,0 +1,39 @@
|
||||
<UserControl
|
||||
x:Class="CapMachine.Shared.Controls.ValueShow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:CapMachine.Shared.Controls"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
x:Name="UserControlInstance"
|
||||
d:DesignHeight="46"
|
||||
d:DesignWidth="110"
|
||||
mc:Ignorable="d">
|
||||
<StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock
|
||||
FontSize="16"
|
||||
Foreground="DarkSlateBlue"
|
||||
Text="{Binding ElementName=UserControlInstance, Path=CellTitle}" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Border Background="Gray" CornerRadius="4">
|
||||
<TextBlock
|
||||
Width="70"
|
||||
Margin="2,0,0,0"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"
|
||||
Text="{Binding ElementName=UserControlInstance, Path=CellValue}" />
|
||||
</Border>
|
||||
<TextBlock
|
||||
Margin="3,0,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="Gray"
|
||||
Text="{Binding ElementName=UserControlInstance, Path=CellUnit}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user