You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.9 KiB
96 lines
3.9 KiB
<Window x:Class="AIK.Views.MenuPages.Integral.PaymentQrCodeWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:convert="clr-namespace:AIK.Views.Converters"
|
|
Title="扫码支付"
|
|
Width="420"
|
|
Height="500"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="White"
|
|
ShowInTaskbar="False">
|
|
<Window.Resources>
|
|
<convert:ByteArrayToImageSourceConverter x:Key="ByteArrayToImageSourceConverter"/>
|
|
</Window.Resources>
|
|
<Grid Margin="28">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" HorizontalAlignment="Center">
|
|
<TextBlock x:Name="PaymentTitleText"
|
|
Text="微信扫码支付"
|
|
FontSize="24"
|
|
FontWeight="SemiBold"
|
|
Foreground="#222"
|
|
HorizontalAlignment="Center"/>
|
|
<TextBlock Text="{Binding Amount, StringFormat=充值金额:{0:0.##} 元}"
|
|
FontSize="15"
|
|
Foreground="#666"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,10,0,0"/>
|
|
</StackPanel>
|
|
|
|
<Border x:Name="QrCodeBorder"
|
|
Grid.Row="1"
|
|
Width="250"
|
|
Height="250"
|
|
BorderBrush="#E5E7EB"
|
|
BorderThickness="1"
|
|
CornerRadius="8"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Padding="12"
|
|
Visibility="{Binding IsQrCodeMode, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<Image Source="{Binding QrCodeBytes, Converter={StaticResource ByteArrayToImageSourceConverter}}"
|
|
Stretch="Uniform"/>
|
|
</Border>
|
|
|
|
<Border x:Name="PaypalHintBorder"
|
|
Grid.Row="1"
|
|
Width="280"
|
|
Height="220"
|
|
BorderBrush="#E5E7EB"
|
|
BorderThickness="1"
|
|
CornerRadius="8"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="#F8FAFC"
|
|
Visibility="Collapsed">
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<TextBlock Text="PayPal"
|
|
FontSize="28"
|
|
FontWeight="SemiBold"
|
|
Foreground="#1F2937"
|
|
HorizontalAlignment="Center"/>
|
|
<TextBlock Text="浏览器将打开支付页面"
|
|
FontSize="15"
|
|
Foreground="#6B7280"
|
|
Margin="0,12,0,0"
|
|
HorizontalAlignment="Center"/>
|
|
<TextBlock Text="支付完成后本窗口会自动刷新状态"
|
|
FontSize="14"
|
|
Foreground="#6B7280"
|
|
Margin="0,8,0,0"
|
|
HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<StackPanel Grid.Row="2">
|
|
<TextBlock Text="{Binding StatusMessage}"
|
|
FontSize="15"
|
|
Foreground="#20B8C8"
|
|
TextAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,18"/>
|
|
<Button x:Name="CloseOrOpenButton"
|
|
Content="{Binding PaymentButtonText}"
|
|
Width="120"
|
|
Height="38"
|
|
HorizontalAlignment="Center"
|
|
Click="CloseButton_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|
|
|