12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <Page x:Class="modulekz.Cart"
- 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:modulekz"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="Cart">
- <Page.Resources>
- <DataTemplate x:Key="Book">
- <Border BorderBrush="Black" BorderThickness="1" MaxWidth="400" MinWidth="400">
- <StackPanel Orientation="Horizontal">
- <Image Width="120" Source="{Binding Img}" Margin="10 0 10 0"/>
- <StackPanel Orientation="Vertical">
- <TextBlock Text="Название: ">
- <Run Text="{Binding Title}"/>
- </TextBlock>
- <TextBlock Text="Автор: ">
- <Run Text="{Binding Author}"/>
- </TextBlock>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Количество: "/>
- <Button x:Name="del" Content="↓" Click="del_Click" Uid="{Binding Id}"/>
- <TextBlock x:Name="inc" Text="{Binding inc}"/>
- <Button x:Name="add" Content="↑" Click="add_Click" Uid="{Binding Id}"/>
- </StackPanel>
- <TextBlock Text="Цена: "/>
- <TextBlock Text="{Binding Cost}" TextDecorations="{Binding decor}"/>
- <TextBlock Text="{Binding NewPrice}" />
- </StackPanel>
- <Button x:Name="Delet" Content="Удалить" Click="Delet_Click" Uid="{Binding Id}"/>
- </StackPanel>
- </Border>
- </DataTemplate>
- </Page.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="60"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <Button x:Name="Back" Content="Назад" Click="Back_Click" Width="70" Height="50"/>
- <Button x:Name="Clear" Content="Очистить" Click="Clear_Click" Width="70" Height="50"/>
- <Button x:Name="Buy" Content="Купить" Click="Buy_Click" Width="70" Height="50"/>
- </StackPanel>
- <ListBox x:Name="ListBook" ItemTemplate="{StaticResource Book}" Grid.Row="2"/>
- </Grid>
- </Page>
|