89 lines
2.7 KiB
XML
89 lines
2.7 KiB
XML
<UserControl
|
|
x:Class="FATrace.WPLApp.Views.DialogUserEditView"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Width="520"
|
|
Height="320"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
mc:Ignorable="d">
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="110" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,0,12"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Text="{Binding Title}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="用户名:" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="30"
|
|
Text="{Binding UserName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="密码:" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="30"
|
|
Margin="0,10,0,0"
|
|
Text="{Binding Password, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="等级:" />
|
|
<ComboBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="30"
|
|
Margin="0,10,0,0"
|
|
ItemsSource="{Binding AccessLevelOptions}"
|
|
SelectedItem="{Binding AccessLevel, Mode=TwoWay}" />
|
|
|
|
<StackPanel
|
|
Grid.Row="4"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,18,0,0"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="90"
|
|
Margin="0,0,10,0"
|
|
Command="{Binding SaveCommand}"
|
|
Content="保存" />
|
|
<Button
|
|
Width="90"
|
|
Command="{Binding CancelCommand}"
|
|
Content="取消" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|