35 lines
2.2 KiB
XML
35 lines
2.2 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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:vm="using:AvaloniaApplication14_Inventory_300326.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="AvaloniaApplication14_Inventory_300326.Views.EmployeeEditingWindow"
|
|
Title="EmployeeWindow"
|
|
x:DataType="vm:EmployeeEditingWindowViewModel"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<StackPanel>
|
|
<Grid RowDefinitions="Auto Auto *" ColumnDefinitions="Auto * *">
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" Content="Фамилия Имя отчество: "></Label>
|
|
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Watermark="ФИО" Text="{Binding FullName}" MinWidth="100"></TextBox>
|
|
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Должность: "></Label>
|
|
<ComboBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" ItemsSource="{Binding Positions}" SelectedItem="{Binding SelectedPosition}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Label Content="{Binding Name}"></Label>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<Button Grid.Row="2" Grid.Column="0" x:Name="ConfirmButton" Command="{Binding ConfirmCommand}" VerticalAlignment="Bottom"></Button>
|
|
<Button Grid.Row="2" Grid.Column="1" Content="Назад" Command="{Binding CancelCommand}" VerticalAlignment="Bottom"></Button>
|
|
<Button Grid.Row="2" Grid.Column="2" Content="Уволить" Command="{Binding FireCommand}" VerticalAlignment="Bottom"></Button>
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
</Window>
|