feat: Add Loading styles and demos.
This commit is contained in:
1 parent
db0ced2f00
commit
5bfbbe1904
8 files changed
+587
-1
No files matched your search
@@ -53,7 +53,8 @@
|
||||
[ "HoneycombPanel", "HoneycombPanelDemo", "Brush.PolygonHexagon", "", "Layout" ],
|
||||
[ "UniformSpacingPanel", "UniformSpacingPanelDemo", "Brush.IncreaseHorizontalSpacing", "", "Layout" ],
|
||||
[ "ProgressBar", "ProgressBarDemo", "Brush.ProgressBar", "", "Feedback" ],
|
||||
[ "Rate", "RateDemo", "Brush.Favorite", "", "Feedback" ]
|
||||
[ "Rate", "RateDemo", "Brush.Favorite", "", "Feedback" ],
|
||||
[ "Loading", "LoadingDemo", "Brush.Loading", "", "Feedback" ]
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,27 @@
|
||||
<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.LoadingDemo"
|
||||
Background="{DynamicResource RegionBrush}">
|
||||
<TransitioningContentControl>
|
||||
<StackPanel Width="600"
|
||||
Margin="32"
|
||||
VerticalAlignment="Center">
|
||||
<hc:LoadingLine />
|
||||
<hc:LoadingLine Margin="0,30"
|
||||
Foreground="BlueViolet"
|
||||
Theme="{StaticResource LoadingLineLarge}" />
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<hc:LoadingCircle />
|
||||
<Border VerticalAlignment="Center"
|
||||
Margin="32,0,0,0"
|
||||
Background="{DynamicResource PrimaryBrush}"
|
||||
CornerRadius="10">
|
||||
<hc:LoadingCircle Theme="{StaticResource LoadingCircleLight}"
|
||||
Margin="10" />
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</TransitioningContentControl>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace HandyControlDemo.UserControl;
|
||||
|
||||
public partial class LoadingDemo : Avalonia.Controls.UserControl
|
||||
{
|
||||
public LoadingDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user