123456789101112131415161718192021222324252627282930313233343536373839 |
- <Page x:Class="DontHarmDesktop.Pages.ServiceAdd"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:DontHarmDesktop.Pages" xmlns:viewmodels="clr-namespace:DontHarmDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:ServiceAddViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ServiceAdd">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="32"/>
- <RowDefinition Height="32"/>
- <RowDefinition Height="32"/>
- <RowDefinition Height="32"/>
- </Grid.RowDefinitions>
- <TextBlock Text="Наименование" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
- <TextBlock Text="Цена" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" />
- <TextBlock Text="Код" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" />
- <TextBox Grid.Row="0" Grid.Column="1" Margin="4" Text="{Binding Name}" />
- <TextBox Grid.Row="1" Grid.Column="1" Margin="4" Text="{Binding Price}"/>
- <TextBox Grid.Row="2" Grid.Column="1" Margin="4" Text="{Binding Code}"/>
- <Button
- Grid.Row="3"
- Grid.Column="1"
- Margin="4"
- Style="{StaticResource Suggested}"
- Command="{Binding Submit}">Сохранить</Button>
- </Grid>
- </Page>
|