Skip to content

[12.0] Redo TimePicker/DatePicker templates #17515

Open
@maxkatz6

Description

@maxkatz6

Is your feature request related to a problem? Please describe.

TimePicker/DatePicker styling is problematic, being way too reliant on template parts, and styling deeply baked into C# code.
Any third-party theme can be broken easily by minor improvements in these controls.

Describe the solution you'd like

  1. Reduce template parts to minimum
  2. Use TemplateBinding as much as possible, keeping styling logic in XAML template only
  3. If needed, introduce some kind of TimePickerTemplateSettings class, with readonly properties of pre-computed values useful in XAML template. Something like https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/SplitView/SplitViewTemplateSettings.cs

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions