feat: initialize control.

This commit is contained in:
rabbitism
2023-03-15 22:21:56 +08:00
parent 3d00ddf861
commit 6dcfcf9e35
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Avalonia;
using Avalonia.Collections;
using Avalonia.Controls;
using Avalonia.Controls.Shapes;
namespace Ursa.Controls;
public class Divider : ContentControl
{
public static readonly StyledProperty<AvaloniaList<double>?> DashArrayProperty = Shape.StrokeDashArrayProperty.AddOwner<Divider>();
public AvaloniaList<double>? DashArray
{
get => GetValue(DashArrayProperty);
set => SetValue(DashArrayProperty, value);
}
}