diff --git a/src/Ursa/Controls/Panels/UrsaTimePickerPanel.cs b/src/Ursa/Controls/Panels/UrsaTimePickerPanel.cs new file mode 100644 index 0000000..d784d0c --- /dev/null +++ b/src/Ursa/Controls/Panels/UrsaTimePickerPanel.cs @@ -0,0 +1,28 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Controls.Primitives; +using Avalonia.Input; + +namespace Ursa.Controls.Panels; + +/// +/// The panel to display items for time selection +/// +public class UrsaTimePickerPanel: Panel +{ + /// + /// Defines whether the panel is looping. + /// This is ont applicable for columns like year and AM/PM designation. + /// + public static readonly StyledProperty IsLoopingProperty = AvaloniaProperty.Register( + nameof(IsLooping)); + + /// + /// Gets or sets the value of . + /// + public bool IsLooping + { + get => GetValue(IsLoopingProperty); + set => SetValue(IsLoopingProperty, value); + } +} \ No newline at end of file diff --git a/src/Ursa/Controls/TimePicker/TimePicker.cs b/src/Ursa/Controls/TimePicker/TimePicker.cs index bbb3729..d1d5a0a 100644 --- a/src/Ursa/Controls/TimePicker/TimePicker.cs +++ b/src/Ursa/Controls/TimePicker/TimePicker.cs @@ -32,4 +32,13 @@ public class TimePicker: TemplatedControl get => GetValue(SelectedTimeProperty); set => SetValue(SelectedTimeProperty, value); } + + public static readonly StyledProperty NeedConfirmProperty = AvaloniaProperty.Register( + nameof(NeedConfirm)); + + public bool NeedConfirm + { + get => GetValue(NeedConfirmProperty); + set => SetValue(NeedConfirmProperty, value); + } } \ No newline at end of file diff --git a/src/Ursa/Ursa.csproj b/src/Ursa/Ursa.csproj index 6b5f3e0..d56963a 100644 --- a/src/Ursa/Ursa.csproj +++ b/src/Ursa/Ursa.csproj @@ -21,7 +21,6 @@ -