添加项目文件。
This commit is contained in:
95
OrpaonEMS.App/Views/DialogBmsConfigView.xaml
Normal file
95
OrpaonEMS.App/Views/DialogBmsConfigView.xaml
Normal file
@@ -0,0 +1,95 @@
|
||||
<UserControl
|
||||
x:Class="OrpaonEMS.App.Views.DialogBmsConfigView"
|
||||
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:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:keyboard="clr-namespace:KeyBoard.WPF.Behavior;assembly=KeyBoard.WPF"
|
||||
xmlns:local="clr-namespace:OrpaonEMS.App.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="700"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel
|
||||
Margin="40"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<TextBlock
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"
|
||||
Text="名称:"
|
||||
TextAlignment="Center" />
|
||||
<TextBlock
|
||||
Width="400"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"
|
||||
Text="{Binding ConfigModel.Name}" />
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Margin="40"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<TextBlock
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"
|
||||
Text="数值:"
|
||||
TextAlignment="Center" />
|
||||
<TextBox
|
||||
Width="400"
|
||||
VerticalAlignment="Center"
|
||||
BorderBrush="Gray"
|
||||
BorderThickness="1"
|
||||
FontSize="24"
|
||||
Text="{Binding ConfigModel.WriteValue}">
|
||||
<i:Interaction.Behaviors>
|
||||
<keyboard:NumericKeyboardBehavior />
|
||||
</i:Interaction.Behaviors>
|
||||
</TextBox>
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Margin="40"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<TextBlock
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"
|
||||
Text="范围:"
|
||||
TextAlignment="Center" />
|
||||
<TextBlock
|
||||
Width="400"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="24"
|
||||
Text="{Binding ConfigModel.ValueRangeInfo.UpValue}" />
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="3"
|
||||
HorizontalAlignment="Right"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Margin="10,10"
|
||||
Command="{Binding SaveCmd}"
|
||||
Content="确定" />
|
||||
<Button
|
||||
Margin="10,0"
|
||||
Command="{Binding CancelCmd}"
|
||||
Content="取消" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user