feat: Add AnimationPath styles and demos.
This commit is contained in:
1 parent
c19e3870fa
commit
d50c08c629
4 files changed
+454
-1
No files matched your search
@@ -58,7 +58,8 @@
|
||||
[ "Tag", "TagDemo", "Brush.Tag", "", "DataDisplay" ],
|
||||
[ "Badge", "BadgeDemo", "Brush.CheckDot", "", "DataDisplay" ],
|
||||
[ "Shield", "ShieldDemo", "Brush.SplitKeyValuePair", "", "DataDisplay" ],
|
||||
[ "ImageBlock", "ImageBlockDemo", "Brush.ImageStack", "", "DataDisplay" ]
|
||||
[ "ImageBlock", "ImageBlockDemo", "Brush.ImageStack", "", "DataDisplay" ],
|
||||
[ "AnimationPath", "AnimationPathDemo", "Brush.Path", "", "DataDisplay" ]
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
x:Class="HandyControlDemo.UserControl.AnimationPathDemo"
|
||||
Background="{DynamicResource RegionBrush}">
|
||||
<TransitioningContentControl>
|
||||
<Viewbox Margin="32" Width="200" Height="200">
|
||||
<hc:AnimationPath VerticalAlignment="Center"
|
||||
Duration="0:0:6"
|
||||
Stretch="Uniform"
|
||||
Width="1024" Height="1024"
|
||||
StrokeThickness="10"
|
||||
Stroke="{DynamicResource PrimaryBrush}"
|
||||
Data="{StaticResource GithubGeometry}" />
|
||||
</Viewbox>
|
||||
</TransitioningContentControl>
|
||||
</UserControl>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace HandyControlDemo.UserControl;
|
||||
|
||||
public partial class AnimationPathDemo : Avalonia.Controls.UserControl
|
||||
{
|
||||
public AnimationPathDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user