PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentView/PhysicalPerson/ViewPhysicalPersonsWindow.xaml

46 lines
2.2 KiB
XML

<Window x:Class="EmployeeManagmentView.PhysicalPerson.ViewPhysicalPersonsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Список физических лиц"
Height="500" Width="800"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">
<Grid>
<!-- Заголовок окна -->
<TextBlock Text="Список физических лиц"
HorizontalAlignment="Center" VerticalAlignment="Top"
FontSize="18" FontWeight="Bold"
Foreground="#FFFFFF"
Margin="0,20,0,0" />
<!-- Поиск -->
<TextBox x:Name="SearchTextBox"
Width="560"
VerticalAlignment="Top"
Margin="0,49,0,0"
HorizontalAlignment="Center"
Style="{StaticResource RoundedTextBoxStyle}"
TextChanged="SearchTextBox_TextChanged" Height="35" />
<!-- Таблица для отображения -->
<DataGrid x:Name="PhysicalPersonsDataGrid"
Margin="20,100,20,20"
AutoGenerateColumns="False"
Style="{StaticResource RoundedDataGridStyle}">
<DataGrid.Columns>
<DataGridTextColumn Header="Фамилия" Binding="{Binding Surname}" Width="*" />
<DataGridTextColumn Header="Имя" Binding="{Binding Name}" Width="*" />
<DataGridTextColumn Header="Отчество" Binding="{Binding Patronymic}" Width="*" />
<DataGridTextColumn Header="Дата рождения" Binding="{Binding Birthday, StringFormat=dd.MM.yyyy}" Width="*" />
<DataGridTextColumn Header="Пол" Binding="{Binding Gender}" Width="*" />
<DataGridTextColumn Header="Адрес" Binding="{Binding Address}" Width="*" />
<DataGridTextColumn Header="Телефон" Binding="{Binding Telephone}" Width="*" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</Window>