1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <Page x:Class="test.korzinka"
- 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:test"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="korzinka" DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}">
- <Page.Resources>
- <DataTemplate x:Key="ListBookKorz">
- <Border BorderBrush="Black" BorderThickness="1" Width="1700">
- <StackPanel Uid="{Binding IdBook}" Orientation="Horizontal">
- <Image Height="100" Source="{Binding Image}"></Image>
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Название: "></TextBlock>
- <TextBlock Text="{Binding Title}"/>
- <TextBlock Text=" | Жанр: "></TextBlock>
- <TextBlock Text="{Binding Genre1.Genre1}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Автор: "></TextBlock>
- <TextBlock Text="{Binding Authors.Name}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Visibility="{Binding Visible}">
- <TextBlock Text="Цена: "></TextBlock>
- <TextBlock Text="{Binding Cost, StringFormat=0}" />
- <TextBlock Text=" руб."/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Цена: "></TextBlock>
- <TextBlock Text="{Binding TotalPriseZak, StringFormat=0}" TextDecorations="{Binding decor}" Visibility="{Binding Visible2}"/>
- <TextBlock Text=" "/>
- <TextBlock Text="{Binding TotalPriseZakWithSale, StringFormat=0}"/>
- <TextBlock Text=" руб."/>
- </StackPanel>
- </StackPanel>
- <Button x:Name="delit" Content="Удалить позицию" Click="delit_Click" Uid="{Binding IdBook}"></Button>
- </StackPanel>
- </Border>
- </DataTemplate>
- </Page.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"/>
- <RowDefinition Height="209*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Row="0">
- <Button Content="На главную" Name="menu" Click="menu_Click" ></Button>
- <Button Content="Оформить заказ" Name="newZak" Click="newZak_Click"></Button>
- <Button Content="Очичтить корзину" Name="clear" Click="clear_Click"></Button>
- </StackPanel>
- <ListBox x:Name="ListZak" ItemTemplate="{StaticResource ListBookKorz}" Grid.Row="1" Visibility="Visible"></ListBox>
- </Grid>
- </Page>
|