using Avalonia; using Avalonia.Controls.Primitives; namespace Ursa.Controls.TimePicker; public class TimePicker: TemplatedControl { public static readonly StyledProperty DisplayFormatProperty = AvaloniaProperty.Register( nameof(DisplayFormat), defaultValue:"HH:mm:ss"); public string DisplayFormat { get => GetValue(DisplayFormatProperty); set => SetValue(DisplayFormatProperty, value); } public static readonly StyledProperty PanelPlacementProperty = AvaloniaProperty.Register( nameof(PanelPlacement), defaultValue: "HH mm ss"); public string PanelPlacement { get => GetValue(PanelPlacementProperty); set => SetValue(PanelPlacementProperty, value); } public static readonly StyledProperty SelectedTimeProperty = AvaloniaProperty.Register( nameof(SelectedTime)); public TimeSpan? SelectedTime { get => GetValue(SelectedTimeProperty); set => SetValue(SelectedTimeProperty, value); } }