12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <Window x:Class="bububu.Views.ScheduleWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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"
- xmlns:local="clr-namespace:bububu.Views"
- mc:Ignorable="d"
- Title="ScheduleWindow" Height="450" Width="800" Background="#FF1F1F1F">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="4"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Vertical">
- <TextBlock Text="Предметы:" HorizontalAlignment="Center" Margin ="5" FontSize="20" Foreground="Violet" FontStyle="Italic"></TextBlock>
- <ListBox Margin="5" Background="#FF1F1F1F" ItemsSource="{Binding Schedules}" SelectedItem="{Binding SelectedTeacher, Mode=TwoWay}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Obj}" Margin="5" HorizontalAlignment="Center" FontSize="20" FontFamily="Times New Roman" Foreground="Violet" ></TextBlock>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </StackPanel>
- <ListBox Grid.Column="1" ></ListBox>
- <ListView Grid.Column="2" Background="#FF1F1F1F" ItemsSource="{Binding Schedules}" HorizontalContentAlignment="Stretch">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBlock HorizontalAlignment="Center" Grid.Column="0" Text="{Binding Obj}" Margin="5" FontSize="20" FontFamily="Times New Roman" Foreground="Violet" ></TextBlock>
- <TextBlock HorizontalAlignment="Center" Grid.Column="1" Text = "{Binding Teacher}" Margin="5" FontSize="20" FontFamily="Times New Roman" Foreground="Violet" ></TextBlock>
- <Button HorizontalAlignment="Center" Grid.Column="2" Margin="5">Подробнее</Button>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Window>
|