DSF.Net/Controllers/Process/TitledRoundProcess.xaml

(完整代码) 4KB

<UserControl
             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:local="clr-namespace:DSF.Net.Controllers.Process"
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" x:Class="DSF.Net.Controllers.Process.TitledRoundProcess"
             mc:Ignorable="d" 
             d:DesignHeight="140" d:DesignWidth="140">
    <UserControl.Resources>
        <Storyboard x:Key="RoundAnimate" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="ellipse">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:15" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="ellipse1">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:15" Value="-360"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <UserControl.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource RoundAnimate}"/>
        </EventTrigger>
    </UserControl.Triggers>
    <Viewbox>
    <Grid Width="140" Height="140">

        <Ellipse Stroke="{Binding Path=ThemeColor.Light}" Height="136" VerticalAlignment="Top" Margin="2,2,2,0"/>
            <Ellipse x:Name="ellipse" Margin="0,0.507,0,-0.507" Stroke="{Binding Path=ThemeColor.Light}" StrokeThickness="4" StrokeDashArray="30 20" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeDashCap="Round" Stretch="Uniform" Height="140" VerticalAlignment="Top" d:LayoutOverrides="Height" RenderTransformOrigin="0.5,0.5">
            <Ellipse.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Ellipse.RenderTransform>
        </Ellipse>
            <Ellipse x:Name="ellipse1" Margin="8" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="{Binding Path=ThemeColor.Light}" StrokeThickness="8" StrokeDashArray="0.8 0.1" Opacity="0.3" RenderTransformOrigin="0.5,0.5">
            <Ellipse.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Ellipse.RenderTransform>
        </Ellipse>
            <Ellipse Margin="25" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="{Binding Path=ThemeColor.Light}" StrokeThickness="3" Opacity="0.3"/>
            <ed:Arc x:Name="arc" ArcThicknessUnit="Pixel" EndAngle="0" Margin="20" StrokeStartLineCap="Round" Stretch="None" StrokeEndLineCap="Round" Stroke="{Binding Path=ThemeColor.Light}" StrokeThickness="11" StartAngle="0"/>
            <Label x:Name="labelValue" Content="000.000" Margin="25,48.395,25,61.994" Foreground="{Binding Path=ThemeColor.TextEnabled}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Padding="0" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC"/>
            <Label x:Name="labelText" Content="Height/m" Margin="25,0,25,38.443" Foreground="{Binding Path=ThemeColor.Light}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC" Height="29.611" VerticalAlignment="Bottom"/>

    </Grid>
        </Viewbox>
</UserControl>

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

AI 解读 AI

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

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