DSF.Net/Controllers/Process/RotateProcess.xaml
(完整代码) 3KB<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.RotateProcess"
mc:Ignorable="d"
d:DesignHeight="72" d:DesignWidth="72">
<UserControl.Resources>
<Storyboard x:Key="RotateAnimate" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="grid">
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:10" Value="360"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</UserControl.Resources>
<UserControl.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource RotateAnimate}"/>
</EventTrigger>
</UserControl.Triggers>
<Viewbox>
<Grid Height="72" Width="72">
<ed:Arc EndAngle="359" Stretch="None" Stroke="{Binding Path=ThemeColor.Light}" Opacity="0.3" Margin="8" StrokeThickness="4" StrokeDashArray="1 0.2" Width="56" Height="56" ArcThickness="0"/>
<ed:Arc Name="arc" ArcThicknessUnit="Pixel" EndAngle="0" Stretch="None" Stroke="{Binding Path=ThemeColor.Light}" Margin="8" StrokeThickness="4" StrokeDashArray="1 0.2" Width="56" Height="56"/>
<Ellipse Margin="13" Stroke="{Binding Path=ThemeColor.Light}" StrokeThickness="0.6" Width="46" Height="46"/>
<Label x:Name="label" Content="190.000" Margin="13,23.333,13,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="{Binding Path=ThemeColor.TextEnabled}" HorizontalContentAlignment="Center" Height="16" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC" FontSize="9" VerticalContentAlignment="Center" Padding="0" Width="46"/>
<Label x:Name="labelText" Content="Angle" Margin="13,37.733,13,0" VerticalAlignment="Top" Background="{x:Null}" Foreground="{Binding Path=ThemeColor.Light}" HorizontalContentAlignment="Center" Height="16" FontFamily="/WpfApp1;component/Resource/Font/#MJNgai PRC Medium_Dospy-DDC" FontSize="10" VerticalContentAlignment="Center" Padding="0" Width="46"/>
<Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Grid.RenderTransform>
<ed:Arc ArcThickness="0" ArcThicknessUnit="Pixel" EndAngle="88" Stretch="None" StartAngle="-90" StrokeThickness="2.5" Stroke="{Binding Path=ThemeColor.Light}" Opacity="0.8"/>
<ed:Arc ArcThickness="0" ArcThicknessUnit="Pixel" EndAngle="268" Stretch="None" StartAngle="90" StrokeThickness="2.5" Stroke="{Binding Path=ThemeColor.Light}"/>
</Grid>
</Grid>
</Viewbox>
</UserControl>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。