Browse Source
* Add VerticalContentAlignment property to DatePicker and TimePicker This change registers VerticalContentAlignmentProperty as a StyledProperty using ContentControl's property as the owner for both DatePicker and TimePicker controls to maintain framework consistency. Basic xUnit v3 unit tests are introduced to validate property round-trips (Top, Center, Bottom, Stretch) and to ensure the default value correctly resolves to Stretch. This establishes the necessary C# infrastructure before modifying the control templates. Part of #21211: implment fluent theme layout * Fix VerticalContentAlignment bindings and integration tests - Bind internal grids to VerticalContentAlignment in Fluent and Simple themes for DatePicker and TimePicker controls. - Add comprehensive integration tests using mocked NameScopes in DatePickerTests and TimePickerTests to verify visual propagation. - Validate visual layout correctness using the ControlCatalog app. Closes AvaloniaUI#21211 * Remove tautological tests --------- Co-authored-by: Martim Claudino <martimffclaudino@tecnico.ulisboa.pt> Co-authored-by: Julien Lebosquain <julien@lebosquain.net>pull/22024/head
committed by
GitHub
8 changed files with 72 additions and 4 deletions
Loading…
Reference in new issue