/
oxxsnaa
/
SoftwareDevelopmentTechnology
Обзор
Документация
Войти
/
oxxsnaa
/
SoftwareDevelopmentTechnology
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
UI/CreateOrEditApplication.xaml
40 строк
2 KB
Huawei
init
15 дек 2024, 21:17
15 дек 2024, 21:17
44ddcdf
Код
Авторство
О чём код?
<Window x:Class="TransioClientAPI.UI.CreateOrEditApplication" 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:local="clr-namespace:TransioClientAPI.UI" mc:Ignorable="d" Title="Создание/Редактирование Заявки (Логистика)" Height="160" Width="400" MinHeight="150" MinWidth="300" Background="#E3F2FD"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <!-- Номер заявки --> <TextBlock Text="Номер заявки:" Margin="5" VerticalAlignment="Center" /> <TextBox Grid.Column="1" Margin="5" x:Name="RequestNumberTextBox" Text="{Binding Application.Number, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:CreateOrEditApplication}}}" /> <!-- Отправитель --> <TextBlock Text="Отправитель:" Grid.Row="1" Margin="5" VerticalAlignment="Center" /> <TextBox Grid.Row="1" Grid.Column="1" Margin="5" x:Name="SenderTextBox" Text="{Binding Application.Sender, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:CreateOrEditApplication}}}" /> <!-- Получатель --> <TextBlock Text="Получатель:" Grid.Row="2" Margin="5" VerticalAlignment="Center" /> <TextBox Grid.Row="2" Grid.Column="1" Margin="5" x:Name="RecipientTextBox" Text="{Binding Application.Recipient, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:CreateOrEditApplication}}}" /> <!-- Кнопка сохранения --> <Button Content="Сохранить" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" Margin="5" Padding="10,5" Background="#2196F3" Foreground="White" x:Name="SaveButton" Click="SaveButton_Click" /> </Grid> </Window>