From 6dcfcf9e35a9d95fa3f4afbf0e61abdc705fee5f Mon Sep 17 00:00:00 2001 From: rabbitism Date: Wed, 15 Mar 2023 22:21:56 +0800 Subject: [PATCH] feat: initialize control. --- src/Ursa.Themes.Semi/Controls/Divider.axaml | 23 +++++++++++++++++++++ src/Ursa/Controls/Divider.cs | 17 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/Ursa.Themes.Semi/Controls/Divider.axaml create mode 100644 src/Ursa/Controls/Divider.cs diff --git a/src/Ursa.Themes.Semi/Controls/Divider.axaml b/src/Ursa.Themes.Semi/Controls/Divider.axaml new file mode 100644 index 0000000..1b36fb0 --- /dev/null +++ b/src/Ursa.Themes.Semi/Controls/Divider.axaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/src/Ursa/Controls/Divider.cs b/src/Ursa/Controls/Divider.cs new file mode 100644 index 0000000..04d457b --- /dev/null +++ b/src/Ursa/Controls/Divider.cs @@ -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?> DashArrayProperty = Shape.StrokeDashArrayProperty.AddOwner(); + + public AvaloniaList? DashArray + { + get => GetValue(DashArrayProperty); + set => SetValue(DashArrayProperty, value); + } +} \ No newline at end of file