123456789101112131415161718192021222324252627 |
- <UserControl 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="1000" d:DesignHeight="990"
- x:Class="AvaloniaApplication4.Views.ActionPages.EditAndAddProgramTemplate"
- xmlns:vm="using:AvaloniaApplication4.ViewModels"
- x:DataType="vm:EditAndAddProgramTemplateViewModel"
- Background="White"
- Padding="80">
- <ScrollViewer>
- <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 20 0 0">
- <TextBlock Margin="0 0 0 39" Text="Шаблоны программ" Classes="titleStyle" FontWeight="Bold"/>
- <TextBox Text="{Binding ProgramTemplate.CodeProgram}" Margin="0 0 0 22" Watermark="Код программы"/>
- <TextBox Text="{Binding ProgramTemplate.NameProgram}" Margin="0 0 0 22" Watermark="Наименование программы"/>
- <Grid Margin="0 0 0 30">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <Button HorizontalAlignment="Stretch" Margin="5" Content="Сохранить шаблон" Command="{Binding $parent[UserControl].((vm:EditAndAddProgramTemplateViewModel)DataContext).Save}" Grid.Column="0"/>
- <Button IsEnabled="{Binding IsNotNew}" HorizontalAlignment="Stretch" Command="{Binding $parent[UserControl].((vm:EditAndAddProgramTemplateViewModel)DataContext).Delete}" Margin="5" Content="Удалить шаблон" Grid.Column="1"/>
- </Grid>
- <Button HorizontalAlignment="Stretch" Command="{Binding $parent[UserControl].((vm:EditAndAddProgramTemplateViewModel)DataContext).GoBack}" Content="Вернуться назад"/>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|