2023-02-18 21:02:58 +08:00
|
|
|
<ResourceDictionary
|
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
x:CompileBindings="True">
|
2023-02-04 11:49:22 +08:00
|
|
|
<!-- Add Resources Here -->
|
|
|
|
|
<ControlTheme x:Key="{x:Type RefreshContainer}" TargetType="RefreshContainer">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<ControlTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
Name="PART_ContentPresenter"
|
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
|
|
|
|
<Grid Name="PART_RefreshVisualizerPresenter" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter>
|
|
|
|
|
</ControlTheme>
|
|
|
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type RefreshVisualizer}" TargetType="RefreshVisualizer">
|
|
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False" />
|
|
|
|
|
<Setter Property="Height" Value="100" />
|
2024-02-24 18:11:28 +08:00
|
|
|
<Setter Property="Background" Value="{DynamicResource RefreshVisualizerIconBackground}" />
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource RefreshVisualizerIconForeground}" />
|
2024-02-24 16:49:31 +08:00
|
|
|
<Setter Property="Content">
|
|
|
|
|
<Template>
|
2024-02-28 14:47:56 +08:00
|
|
|
<Arc
|
|
|
|
|
Name="PART_Icon"
|
|
|
|
|
Width="{DynamicResource RefreshVisualizerIconSize}"
|
|
|
|
|
Height="{DynamicResource RefreshVisualizerIconSize}"
|
|
|
|
|
StartAngle="0"
|
|
|
|
|
Stroke="{DynamicResource RefreshVisualizerIconForeground}"
|
|
|
|
|
StrokeThickness="3"
|
|
|
|
|
StrokeLineCap="Round"
|
|
|
|
|
SweepAngle="270" />
|
2024-02-24 16:49:31 +08:00
|
|
|
</Template>
|
|
|
|
|
</Setter>
|
2023-02-04 11:49:22 +08:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<ControlTemplate>
|
2024-02-24 16:49:31 +08:00
|
|
|
<Grid Name="PART_Root"
|
|
|
|
|
MinHeight="80"
|
|
|
|
|
Background="{TemplateBinding Background}" />
|
2023-02-04 11:49:22 +08:00
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter>
|
|
|
|
|
</ControlTheme>
|
2024-02-24 16:49:31 +08:00
|
|
|
</ResourceDictionary>
|