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="800" d:DesignHeight="450"
- x:Class="pr13.Courses"
- x:DataType="vm:MainWindowViewModel"
- xmlns:vm="using:pr13.ViewModels">
- <Grid RowDefinitions="*,8*">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <ComboBox Width="150" SelectedItem="{Binding CourseVM.SelectedNameOrHour}" ItemsSource="{Binding CourseVM.OrderNameOrHours}"/>
- <ComboBox Width="150" SelectedItem="{Binding CourseVM.SelectedFilter}" ItemsSource="{Binding CourseVM.FilterByHours}"/>
- <TextBox Width="300" Text="{Binding CourseVM.NameOrHoursFind}" Watermark="Название курса или часы"></TextBox>
- </StackPanel>
- <ListBox ItemsSource="{Binding CourseVM.Courses}" Grid.Row="1">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel>
- <TextBlock Text="{Binding Course1}"></TextBlock>
- <TextBlock Text="{Binding HoursCount}"></TextBlock>
- <TextBlock Text="{Binding CountTeachers}"></TextBlock>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|