From 2f251c282c86a30541089c531b83e4edff769109 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Wed, 7 Feb 2024 21:28:41 +0800 Subject: [PATCH] feat: make NumericUpDownBase inherit IClearControl. --- src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs index f13aa37..198aa64 100644 --- a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs +++ b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs @@ -9,13 +9,14 @@ using Avalonia.Data; using Avalonia.Data.Converters; using Avalonia.Input; using Avalonia.Interactivity; +using Irihi.Avalonia.Shared.Contracts; namespace Ursa.Controls; [TemplatePart(PART_Spinner, typeof(ButtonSpinner))] [TemplatePart(PART_TextBox, typeof(TextBox))] [TemplatePart(PART_DragPanel, typeof(Panel))] -public abstract class NumericUpDown : TemplatedControl +public abstract class NumericUpDown : TemplatedControl, IClearControl { public const string PART_Spinner = "PART_Spinner"; public const string PART_TextBox = "PART_TextBox";