demo2025_products_tiron_baby/AddPartner.axaml

32 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2025-03-25 12:37:37 +00:00
<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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="tiron_demo.AddPartner"
WindowStartupLocation="CenterScreen"
Icon="avares://tiron_demo/Resources/icon.ico"
Title="Добавление/редактирование партнёра">
<Grid Margin="10" RowDefinitions="*, auto">
<StackPanel Spacing="10" Grid.Row="0" Name="PartnerPanel">
<TextBlock HorizontalAlignment="Center" FontWeight="Bold" Text="Добавление/редактирование продукта" />
<TextBox Watermark="Наименование" Text="{Binding Name}" />
<TextBox Watermark="Рейтинг" Text="{Binding Rating}" />
<TextBox Watermark="Адрес" Text="{Binding Address}" />
<TextBox Watermark="ФИО директора" Text="{Binding Director}" />
<TextBox Watermark="Телефон" Text="{Binding Phone}" />
<TextBox Watermark="E-mail" Text="{Binding Email}" />
<ComboBox Name="PartnerTypeComboBox" SelectedItem="{Binding TypeNavigation}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<Button Grid.Row="1" HorizontalAlignment="Left" Content="Назад" Click="Button_Click_Back" />
<Button Grid.Row="1" HorizontalAlignment="Right" Content="Сохранить" Click="Button_Click_Save" />
</Grid>
</Window>