123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <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.EditAndAddSubject"
- xmlns:vm="using:AvaloniaApplication4.ViewModels"
- x:DataType="vm:EditAndAddSubjectViewModel"
- 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 Subject.NameSubject}" Margin="0 0 0 22" Watermark="Наименование предмета"/>
- <TextBlock Margin="0 0 0 13" Text="Код предмета" Classes="litleText"/>
- <ComboBox ItemsSource="{Binding CodeAcademicSubjects}" SelectedItem="{Binding Code, Mode=TwoWay}" Margin="0 0 0 22" HorizontalAlignment="Stretch">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding IdCodeAcademicSubjects}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <TextBlock Margin="0 0 0 13" Text="Учебный стандарт" Classes="litleText"/>
- <ComboBox ItemsSource="{Binding TrainingStandartList}" SelectedItem="{Binding TrainingStandart, Mode=TwoWay}" Margin="0 0 0 22" HorizontalAlignment="Stretch">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding NameTrainingStandart}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <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:EditAndAddSubjectViewModel)DataContext).Save}" Grid.Column="0"/>
- <Button IsEnabled="{Binding IsNotNew}" HorizontalAlignment="Stretch" Command="{Binding $parent[UserControl].((vm:EditAndAddSubjectViewModel)DataContext).Delete}" Margin="5" Content="Удалить предмет" Grid.Column="1"/>
- </Grid>
- <Button HorizontalAlignment="Stretch" Command="{Binding $parent[UserControl].((vm:EditAndAddSubjectViewModel)DataContext).GoBack}" Content="Вернуться назад"/>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|