92 lines
6.6 KiB
XML
92 lines
6.6 KiB
XML
<Window x:Class="Ink_Canvas.RandWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
xmlns:local="clr-namespace:Ink_Canvas" FontFamily="Microsoft YaHei UI"
|
|
ui:ThemeManager.RequestedTheme="Light" Topmost="True" Background="Transparent"
|
|
mc:Ignorable="d" WindowStyle="None" AllowsTransparency="True" Loaded="Window_Loaded"
|
|
WindowStartupLocation="CenterScreen"
|
|
Title="Ink Canvas 抽奖" Height="500" Width="900">
|
|
<Border Background="#F0F3F9" CornerRadius="10" BorderThickness="1" BorderBrush="#0066BF" Margin="0" ClipToBounds="True">
|
|
<Canvas>
|
|
<Image Source="/Resources/hatsune-miku1.png" Width="300" Canvas.Bottom="-140" Canvas.Left="-48" Canvas.Top="314"></Image>
|
|
<Grid Canvas.Left="0" Canvas.Right="0" Canvas.Top="0" Canvas.Bottom="0" Width="900" Height="300">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.8*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Viewbox HorizontalAlignment="Center" Margin="20,0">
|
|
<ui:SimpleStackPanel Orientation="Horizontal" Spacing="50" MinHeight="470">
|
|
<Label Name="LabelOutput" FontSize="110" Content="" Block.TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<Label Name="LabelOutput2" FontSize="110" Visibility="Collapsed" Content="" Block.TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
<Label Name="LabelOutput3" FontSize="110" Visibility="Collapsed" Content="" Block.TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</ui:SimpleStackPanel>
|
|
</Viewbox>
|
|
<ui:SimpleStackPanel Spacing="50" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Border x:Name="BorderBtnMinus" MouseUp="BorderBtnMinus_MouseUp" Background="#FBFBFD" Height="70" Width="70" CornerRadius="100">
|
|
<Border.Effect>
|
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.15" BlurRadius="3"/>
|
|
</Border.Effect>
|
|
<Viewbox Margin="20">
|
|
<ui:SymbolIcon Symbol="Remove" Foreground="Black"/>
|
|
</Viewbox>
|
|
</Border>
|
|
<Label Name="LabelNumberCount" Content="1" FontFamily="Segeo UI" FontSize="55" Margin="30"/>
|
|
<Border x:Name="BorderBtnAdd" MouseUp="BorderBtnAdd_MouseUp" Background="#FBFBFD" Height="70" Width="70" CornerRadius="100">
|
|
<Border.Effect>
|
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.15" BlurRadius="3"/>
|
|
</Border.Effect>
|
|
<Viewbox Margin="20">
|
|
<ui:SymbolIcon Symbol="Add" Foreground="Black"/>
|
|
</Viewbox>
|
|
</Border>
|
|
</StackPanel>
|
|
<Grid>
|
|
<Border x:Name="BorderBtnRand" MouseUp="BorderBtnRand_MouseUp" Background="#0066BF"
|
|
Height="70" Width="200" CornerRadius="10">
|
|
<ui:SimpleStackPanel Margin="3,0" Spacing="20" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Viewbox Margin="0,20">
|
|
<ui:SymbolIcon Name="SymbolIconStart" Symbol="Contact" Foreground="White"/>
|
|
</Viewbox>
|
|
<TextBlock Text="抽奖" Foreground="White" FontSize="35" Margin="-1,-1,4,0" VerticalAlignment="Center"/>
|
|
</ui:SimpleStackPanel>
|
|
</Border>
|
|
<Border x:Name="BorderBtnRandCover" Background="#BFBFBF" Visibility="Collapsed"
|
|
Height="70" Width="200" CornerRadius="10">
|
|
<ui:SimpleStackPanel Margin="3,0" Spacing="20" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Viewbox Margin="0,20">
|
|
<ui:SymbolIcon Symbol="{Binding ElementName=SymbolIconStart, Path=Symbol}" Foreground="White"/>
|
|
</Viewbox>
|
|
<TextBlock Text="抽奖" Foreground="White" FontSize="35" Margin="-1,-1,4,0" VerticalAlignment="Center"/>
|
|
</ui:SimpleStackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</ui:SimpleStackPanel>
|
|
</Grid>
|
|
<Border UseLayoutRounding="True" Canvas.Bottom="8" Canvas.Right="8" x:Name="BorderBtnHelp" MouseUp="BorderBtnHelp_MouseUp" Background="#FBFBFD" Grid.Column="1" Margin="10,10,60,10" Height="40" VerticalAlignment="Bottom" HorizontalAlignment="Right" CornerRadius="20">
|
|
<Border.Effect>
|
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.15" BlurRadius="3"/>
|
|
</Border.Effect>
|
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Viewbox Margin="15,12">
|
|
<ui:SymbolIcon Symbol="People" Foreground="Black"/>
|
|
</Viewbox>
|
|
<TextBlock Margin="-5,12,15,12" Name="TextBlockPeopleCount" Text="点击此处以导入名单" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</ui:SimpleStackPanel>
|
|
</Border>
|
|
<Border UseLayoutRounding="True" Canvas.Bottom="8" Canvas.Right="8" x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="{Binding ElementName=BorderBtnHelp, Path=VerticalAlignment}" Margin="10" Grid.Column="1" Background="#E32A34" Height="40" Width="40" CornerRadius="100">
|
|
<Border.Effect>
|
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
|
|
</Border.Effect>
|
|
<Viewbox Margin="14">
|
|
<ui:SymbolIcon Symbol="Clear" Foreground="White"/>
|
|
</Viewbox>
|
|
</Border>
|
|
</Canvas>
|
|
|
|
</Border>
|
|
</Window>
|