91 lines
3.0 KiB
XML
91 lines
3.0 KiB
XML
<UserControl
|
||
x:Class="CapMachine.Wpf.Views.DialogMeterExdView"
|
||
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.Wpf.Views"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
d:DesignHeight="450"
|
||
d:DesignWidth="800"
|
||
mc:Ignorable="d">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="60" />
|
||
<RowDefinition />
|
||
<RowDefinition Height="auto" />
|
||
</Grid.RowDefinitions>
|
||
<StackPanel
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
Orientation="Vertical">
|
||
<StackPanel
|
||
Margin="70,10"
|
||
HorizontalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="24"
|
||
Text="{Binding CurMeterCmdMsg.Name}"
|
||
TextAlignment="Center" />
|
||
|
||
</StackPanel>
|
||
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="1"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
Orientation="Vertical">
|
||
<StackPanel
|
||
Margin="70,10"
|
||
HorizontalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="10,0,5,0"
|
||
VerticalAlignment="Center"
|
||
FontFamily="/Assets/Fonts/#iconfont"
|
||
FontSize="24"
|
||
Foreground="Gray"
|
||
Text="" />
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="24"
|
||
Text="SV2:"
|
||
TextAlignment="Center" />
|
||
<TextBox
|
||
Width="100"
|
||
VerticalAlignment="Center"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1"
|
||
FontSize="24"
|
||
Text="{Binding Value}" />
|
||
<Button
|
||
Margin="10,0"
|
||
Command="{Binding SendDataCmd}"
|
||
Content="发送数据" />
|
||
|
||
</StackPanel>
|
||
|
||
</StackPanel>
|
||
|
||
<StackPanel
|
||
Grid.Row="2"
|
||
HorizontalAlignment="Right"
|
||
Orientation="Horizontal">
|
||
<Button
|
||
Margin="10,10"
|
||
Command="{Binding SaveCmd}"
|
||
Content="确定"
|
||
Foreground="White" />
|
||
<Button
|
||
Margin="10,0"
|
||
Command="{Binding CancelCmd}"
|
||
Content="取消"
|
||
Foreground="White" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</UserControl>
|