AmountInputBox.xaml

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<UserControl x:Class="VoucherGridCtl.AmountInputBox"
             x:ClassModifier="internal"
             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:local="clr-namespace:VoucherGridCtl"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"            
             mc:Ignorable="d" Focusable="True">
    <UserControl.Resources>
        <Style x:Key="btnNum" TargetType="{x:Type RadioButton}">
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RadioButton}">                        
                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,0">
                            <Border.Background>
                                <SolidColorBrush Color="{TemplateBinding Background}"/>
                            </Border.Background>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>                                    
                                </Grid.RowDefinitions>
                                <TextBlock Margin="0" Grid.Column="0" Grid.Row="0" Text="{TemplateBinding RadioButton.Content }" 
                                           HorizontalAlignment="Center" VerticalAlignment="Bottom" Foreground="{TemplateBinding Foreground}"/>
                                <Canvas  x:Name="radiocursor"  Grid.Column="0" Grid.Row="1" Visibility="Hidden" HorizontalAlignment="Center">
                                    <Path>
                                        <Path.Data>
                                            <PathGeometry>
                                                <PathFigure IsClosed="True" StartPoint="-4,8">
                                                    <LineSegment Point="0,0"/>
                                                    <LineSegment Point="4,8"/>
                                                </PathFigure>
                                            </PathGeometry>
                                        </Path.Data>
                                        <Path.Fill>
                                            <SolidColorBrush x:Name="fillcolor" Color="Black"></SolidColorBrush>
                                        </Path.Fill>
                                    </Path>
                                </Canvas>
                            </Grid>
                        </Border>
                        <ControlTemplate.Triggers>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="IsChecked" Value="True" />
                                    <Condition Property="IsEnabled" Value="True" />
                                </MultiTrigger.Conditions>
                                <Setter Property="Visibility" Value="Visible" TargetName="radiocursor"/>
                            </MultiTrigger>
                            <EventTrigger RoutedEvent="Loaded">
                                <BeginStoryboard>
                                    <Storyboard BeginTime="0:0:0" AutoReverse="True" RepeatBehavior="Forever">
                                        <!--<ColorAnimation  RepeatBehavior="Forever" Storyboard.TargetProperty="Color" Storyboard.TargetName="fillcolor" 
                                                         From="White" To="Black">
                                        </ColorAnimation>-->
                                    </Storyboard>
                                </BeginStoryboard>
后面还有 44 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。