123456789101112131415161718192021222324252627282930 |
- <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.MySubjects"
- xmlns:vm="using:AvaloniaApplication4.ViewModels"
- x:DataType="vm:MySubjectsViewModel"
- Background="White"
- Padding="80">
- <ScrollViewer>
- <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 20 0 0">
- <TextBlock Margin="0 0 0 55" Text="Мои предметы" Classes="titleStyle" FontWeight="Bold"/>
- <ListBox ItemsSource="{Binding Subjects}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid Margin="0 0 0 15">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Column="0" Margin="10 0 0 0" Classes="mediumText" FontSize="24" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding IdSubjectNavigation.NameSubject}"/>
- <Button Grid.Column="1" Command="{Binding $parent[UserControl].((vm:MySubjectsViewModel)DataContext).GetCredit}" CommandParameter="{Binding Id}" Margin="0 0 10 0" Content="Просмотреть информацию" VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
- </Grid>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|