123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <Page x:Class="LR1_05._04.ToursPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:LR1_05._04"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ToursPage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <StackPanel Orientation="Horizontal">
- <TextBox Text="Введите название для поиска:" Width="175" TextAlignment="Right"></TextBox>
- <TextBox Width="225" Name="TBoxSearch" TextChanged="TBoxSearch_TextChanged"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBox Text="Выберите тип:" Width="175" TextAlignment="Right"></TextBox>
- <ComboBox Width="225" Name="ComboType" SelectionChanged="ComboType_SelectionChanged" DisplayMemberPath="Name"></ComboBox>
- </StackPanel>
- <StackPanel>
- <CheckBox x:Name="CheckActual" Checked="CheckActual_Checked" Unchecked="CheckActual_Unchecked" Content="Показывать только актуальные туры" HorizontalAlignment="Center"></CheckBox>
- </StackPanel>
- </WrapPanel>
-
- <ListView Grid.Row="1" Name="LViewTours" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid Margin="20" Width="400">
- <Grid.RowDefinitions>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="310"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Image Width="400" Grid.Row="1" Stretch="UniformToFill" HorizontalAlignment="Center" Margin="5">
- <Image.Source>
- <Binding Path="ImagePreview">
- <Binding.TargetNullValue>
- <ImageSource>H:\3ИС\МДК 05.04\AlekseevMDK05.04Lab6\LR1 05.04\Resources\picture.png</ImageSource>
- </Binding.TargetNullValue>
- </Binding>
- </Image.Source>
- </Image>
- <TextBlock Text="{Binding Name}" VerticalAlignment="Center" TextAlignment="Center" Width="300"
- TextWrapping="Wrap" HorizontalAlignment="Center" Margin="5 5" FontSize="26" Grid.Row="0"></TextBlock>
- <TextBlock Text="{Binding Price, StringFormat={}{0:N2} РУБ}" Grid.Row="2" Margin="5 5 5 15" HorizontalAlignment="Center" FontSize="26" FontWeight="Bold"></TextBlock>
- <TextBlock Text="{Binding TicketCount, StringFormat={}Билетов осталось: {0}}" Grid.Row="3" FontSize="14" HorizontalAlignment="Right"></TextBlock>
- <TextBlock Text="{Binding ActualText}" Grid.Row="3" FontSize="14" HorizontalAlignment="Left"></TextBlock>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|