1
0
Files
cpo-lab/Lab2/src/Form/CreateLawnmower.xaml
2024-05-04 08:43:34 +03:00

43 lines
2.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Window x:Class="Lab2.CreateLawnmower"
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:Lab2"
mc:Ignorable="d"
Title="CreateLawnmower" Height="400" Width="200" Closing="Window_Closing">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Label Content="Name:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
<TextBox x:Name="_nameTextBox" Grid.Row="0" Grid.Column="1" Margin="5,5,5,5" Text="{Binding Name, UpdateSourceTrigger=Explicit}" />
<Label Content="Material:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" />
<ComboBox x:Name="_materialComboBox" Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" Text="{Binding Material, UpdateSourceTrigger=Explicit}" />
<Label Content="Weight:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" />
<TextBox x:Name="_weightTextBox" Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" Text="{Binding Weight, UpdateSourceTrigger=Explicit}" />
<Label Content="Power:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" />
<TextBox x:Name="_powerTextBox" Grid.Row="3" Grid.Column="1" Margin="5,5,5,5" Text="{Binding Power, UpdateSourceTrigger=Explicit}" />
<Label Content="Fuel capacity:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" />
<TextBox x:Name="_fuelСapacityTextBox" Grid.Row="4" Grid.Column="1" Margin="5,5,5,5" Text="{Binding FuelCapacity, UpdateSourceTrigger=Explicit}" />
<Button Content="Cancel" IsCancel="True" Grid.Row="5" Grid.Column="0" Margin="5,5,5,5" />
<Button Name="_saveButton" Click="SaveButton_Click" Content="Save" Grid.Row="5" Grid.Column="1" Margin="5,5,5,5" />
</Grid>
</Window>