|
@@ -3,7 +3,7 @@
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
- xmlns:local="clr-namespace:DontHarmDesktop.Pages"
|
|
|
|
|
|
+ xmlns:local="clr-namespace:DontHarmDesktop.Pages" xmlns:viewmodels="clr-namespace:DontHarmDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:ServiceAddViewModel}"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
Title="ServiceEdit">
|
|
Title="ServiceEdit">
|
|
@@ -17,28 +17,39 @@
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
-
|
|
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
<RowDefinition Height="32"/>
|
|
- <RowDefinition Height="32"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<TextBlock Text="Наименование" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
|
|
<TextBlock Text="Наименование" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
|
|
<TextBlock Text="Цена" Grid.Row="1" 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" />
|
|
<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}"/>
|
|
|
|
|
|
+ <TextBox Grid.Row="0" Grid.Column="1" Margin="4,4,0,4" Text="{Binding Name}" />
|
|
|
|
+ <TextBox Grid.Row="1" Grid.Column="1" Margin="4,4,0,4" Text="{Binding Price}"/>
|
|
|
|
+ <TextBox Grid.Row="2" Grid.Column="1" Margin="4,4,0,4" Text="{Binding Code}"/>
|
|
|
|
+ </Grid>
|
|
|
|
|
|
- <Button
|
|
|
|
- Grid.Row="3"
|
|
|
|
- Grid.Column="1"
|
|
|
|
- Margin="4"
|
|
|
|
|
|
+ <Grid Margin="0,8">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="0.79*"/>
|
|
|
|
+ <ColumnDefinition Width="0.01*"/>
|
|
|
|
+ <ColumnDefinition Width="0.2*"/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="28"/>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ Grid.Column="0"
|
|
Style="{StaticResource Suggested}"
|
|
Style="{StaticResource Suggested}"
|
|
Command="{Binding Submit}">Сохранить</Button>
|
|
Command="{Binding Submit}">Сохранить</Button>
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ Command="{Binding Cancel}">Отмена</Button>
|
|
</Grid>
|
|
</Grid>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Page>
|
|
</Page>
|