ServiceAdd.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Page x:Class="DontHarmDesktop.Pages.ServiceAdd"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:DontHarmDesktop.Pages" xmlns:viewmodels="clr-namespace:DontHarmDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:ServiceAddViewModel}"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="ServiceAdd">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="Auto"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="32"/>
  17. <RowDefinition Height="32"/>
  18. <RowDefinition Height="32"/>
  19. <RowDefinition Height="32"/>
  20. </Grid.RowDefinitions>
  21. <TextBlock Text="Наименование" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
  22. <TextBlock Text="Цена" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" />
  23. <TextBlock Text="Код" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" />
  24. <TextBox Grid.Row="0" Grid.Column="1" Margin="4" Text="{Binding Name}" />
  25. <TextBox Grid.Row="1" Grid.Column="1" Margin="4" Text="{Binding Price}"/>
  26. <TextBox Grid.Row="2" Grid.Column="1" Margin="4" Text="{Binding Code}"/>
  27. <Button
  28. Grid.Row="3"
  29. Grid.Column="1"
  30. Margin="4"
  31. Style="{StaticResource Suggested}"
  32. Command="{Binding Submit}">Сохранить</Button>
  33. </Grid>
  34. </Page>