spc-kiosk-pb/Kiosk/Popup/SPC.Kiosk.Popup/VirtureMobileHappyCoupon.xaml
2019-06-16 14:12:09 +09:00

69 lines
4.3 KiB
XML

<UserControl x:Class="SPC.Kiosk.Popup.VirtureMobileHappyCoupon"
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.Popup"
mc:Ignorable="d"
d:DesignHeight="170" d:DesignWidth="380" >
<UserControl.Resources>
<uc:BoolToVisibility x:Key="ToVisibility" />
<uc:NumericToString x:Key="ToString" />
<uc:CodeToMultiLanguage x:Key="ToMultiLanguage"/>
<uc:NumericExistToBool x:Key="ExistToBool"/>
<uc:NumericExistToVisibility x:Key="ExistToVisibility"/>
</UserControl.Resources>
<Grid Width="380" Height="170">
<uc:AnimationButton x:Name="OptionButton"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="360"
Height="150"
NormalBrush="{Binding ButtonNormalBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
DownBrush="{Binding ButtonDownBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
SwitchOnBrush="{Binding ButtonSwitchOnBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
DisableBrush="{Binding ButtonDisableBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
ClickAnimationType="None"
Text="{Binding ItemData.Name, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
TextVisible="Visible"
TextFontWeight="Bold"
SwitchOnFontWeight="Bold"
DisableWeight="Bold"
TextFontFamily="NanumSquare"
TextFontSize="24"
SwitchOnFontSize="24"
DisableFontSize="24"
TextAlignment="Left"
TextHorizontalAlignment="Left"
TextVerticalAlignment="Top"
TextWrapping="Wrap"
TextForeground="#555555"
SwitchOnForeground="#1469cc"
DisableForeground="#bbbbbb"
TextMargin="24,24,96,45"
MouseClicked="OptionButton_MouseClicked"
/>
<uc:MutiLanguageTextBlock x:Name="RemainAmount"
VerticalAlignment="Bottom"
HorizontalAlignment="Left"
Margin="24,0,0,44"
Text="{Binding ItemData.StatusText, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}}}"
Foreground="#555555"
FontSize="21"
FontWeight="Bold"
FontFamily="NanumSquare"
/>
<uc:MutiLanguageTextBlock x:Name="UsingValue"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
Margin="0,0,44,44"
Text="{Binding ItemData.DiscountPrice,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:VirtureMobileHappyCoupon}},ConverterParameter='#,##0', Converter={StaticResource ToString}}"
Foreground="#cc1473"
FontSize="21"
FontWeight="Bold"
FontFamily="NanumSquare"
/>
</Grid>
</UserControl>