<UserControl x:Class="SPC.Kiosk.PB.MiniBasketItem"
             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:uc ="clr-namespace:SPC.Kiosk.Common;assembly=SPC.Kiosk.Common"
             xmlns:local="clr-namespace:SPC.Kiosk.PB"
             mc:Ignorable="d" 
             d:DesignHeight="140" d:DesignWidth="390" >
    <UserControl.Resources>
        <uc:NumericToString x:Key="ToString" />
    </UserControl.Resources>
    <Grid x:Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="130"/>
            <RowDefinition Height="10"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="15"/>
            <ColumnDefinition Width="360"/>
            <ColumnDefinition Width="15"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="1" Grid.Row="0" Width="360" Height="130">
            <Grid.Background>
                <ImageBrush ImageSource="{Binding BackImage, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}" />
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="18"/>
                <RowDefinition Height="32"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="36"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="15"/>
                <ColumnDefinition Width="129"/>
                <ColumnDefinition Width="162"/>
                <ColumnDefinition Width="54"/>
            </Grid.ColumnDefinitions>
            <uc:MutiLanguageTextBlock x:Name="ItemName"
                                  Grid.Column="1"
                                  Grid.Row="1"
                                  Grid.ColumnSpan="2"
                                  Width="291"
                                  VerticalAlignment="Top"
                                  TextAlignment="Left"
                                  Text="Item NameqGg"
                                  FontFamily="NanumSquare"
                                  Foreground="Black"
                                  FontSize="20"
                                  FontWeight="Bold"
                                  TextWrapping="NoWrap"
                                  AutoTextTrim="True"
                                  MultiLanguage="{Binding ItemData.ItemName, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"
                                  DisplayLanguage="{Binding DisplayLanguage, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"/>
            <uc:MutiLanguageTextBlock x:Name="ItemOption"
                                  Grid.Column="1"
                                  Grid.Row="2"
                                  Grid.ColumnSpan="2"
                                  Width="291"
                                  VerticalAlignment="Top"
                                  TextAlignment="Left"
                                  Text=""
                                  FontFamily="NanumSquare"
                                  Foreground="#888888"
                                  FontSize="15"
                                  FontWeight="Normal"
                                  TextWrapping="NoWrap"
                                  AutoTextTrim="True"
                                  MultiLanguage="{Binding ItemData.AllOptionLabel, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"
                                  DisplayLanguage="{Binding DisplayLanguage, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"/>
            <uc:NumericCombo x:Name="ItemCountCombo"
                             Grid.Column="1"
                             Grid.Row="3"
                             Height="36"
                             TextWidth="57"
                             TextFontSize="20"
                             VerticalAlignment="Center"
                             BackgroungBrush="Transparent"
                             ForegroungBrush ="Black"
                             MinValue="1"
                             MaxValue="99"
                             ValueStep="1"
                             SelectedValue="{Binding ItemData.Count, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}},Mode=TwoWay}"
                             IsDropDown="False"
                             DropDownCount="5"/>
            <StackPanel Orientation="Horizontal"
                    Grid.Column="2"
                    Grid.Row="3"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Right">
                <uc:MutiLanguageTextBlock x:Name="ItemPriceLabel"
                                      VerticalAlignment="Center"
                                      TextAlignment="Right"
                                      Text="\"
                                      FontFamily="NanumSquare"
                                      Foreground="Black"
                                      FontSize="25"
                                      FontWeight="Normal"
                                      TextWrapping="NoWrap"
                                      AutoTextTrim="True"
                                      Margin="0,0,10,0"
                                      MultiLanguage="{Binding ItemData.ItemPriceLabel, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"
                                      DisplayLanguage="{Binding DisplayLanguage, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"/>
                <uc:MutiLanguageTextBlock x:Name="ItemPrice"
                                      TextAlignment="Right"
                                      Text=""
                                      FontFamily="NanumSquare"
                                      Foreground="Black"
                                      FontSize="25"
                                      FontWeight="Normal"
                                      TextWrapping="NoWrap"
                                      AutoTextTrim="True"
                                      />
            </StackPanel>
            <uc:AnimationButton x:Name="DeleteItem"
                            Grid.Column="3"        
                            Grid.Row="0"
                            Grid.RowSpan="5"
                            VerticalAlignment="Top"
                            Width="54"
                            Height="54"
                            NormalBrush="{Binding DeleteImageData, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"
                            DownBrush="{Binding DeleteDownImageData, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MiniBasketItem}}}"

                            MouseClicked="DeleteItem_MouseClicked"
                            />
        </Grid>
              
        
        
        <!--<uc:MutiLanguageTextBlock x:Name="ItemName"
                                  Grid.Column="1"
                                  Grid.Row="0"
                                  Width="300"
                                  VerticalAlignment="Top"
                                  TextAlignment="Left"
                                  Text="Item Name"
                                  FontFamily="NanumSquare"
                                  Foreground="Black"
                                  FontSize="18"
                                  FontWeight="Bold"
                                  TextWrapping="NoWrap"
                                  AutoTextTrim="True"
                                  Margin="0,26,0,0"
                                  />
        <uc:NumericCombo x:Name="ItemCountCombo"
                         Width=""
                         Grid.Column="1"
                         Grid.Row="1"
                         VerticalAlignment="Top"
                         HorizontalAlignment="Left"
                         />
        
        
        <StackPanel Orientation="Horizontal"
                    Grid.Column="1"
                    Grid.Row="1"
                    VerticalAlignment="Top"
                    HorizontalAlignment="Right">
            <uc:MutiLanguageTextBlock x:Name="ItemPriceLabel"
                                      VerticalAlignment="Center"
                                      TextAlignment="Right"
                                      Text="\"
                                      FontFamily="NanumSquare"
                                      Foreground="Black"
                                      FontSize="22"
                                      FontWeight="Normal"
                                      TextWrapping="NoWrap"
                                      AutoTextTrim="True"
                                      Margin="0,0,0,0"
                                      />
            <uc:MutiLanguageTextBlock x:Name="ItemPrice"
                                      TextAlignment="Right"
                                      Text="2,000"
                                      FontFamily="NanumSquare"
                                      Foreground="Black"
                                      FontSize="22"
                                      FontWeight="Bold"
                                      TextWrapping="NoWrap"
                                      AutoTextTrim="True"
                                      />
        </StackPanel>
        <uc:AnimationButton x:Name="DeleteItem"
                            Grid.Column="3"        
                            Grid.Row="0"
                            VerticalAlignment="Top"
                            Width="60"
                            Height="60"
                            ClickAnimationType="SizeDown"
                            MouseClicked="DeleteItem_MouseClicked"
                            />
        <Border Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3"
                BorderBrush="#e6e6e6" BorderThickness="0,0,0,1"/>-->
    </Grid>
</UserControl>
