Repository navigation
feat(avalonia): P2 form controls : textarea, select, slider, radio group, calendar, date and time pickers - #9
Merged
Merged
Conversation
added 3 commits
October 8, 2026 10:00
…g in shell ShellAnchoredPopup is the floating-panel logic the popover host had (overlay-layer Popup under an anchor, click outside and Escape close it, one open at a time, open/close motion), now usable by the P2 pickers too; ShellPopoverHost delegates to it. ShellPlatform.StripNativeChrome(TextBox) is the Fluent chrome clearing Input did inline, shared with Textarea, as MAUI shares its StripNativeChrome.
textarea, select, slider, radio-group (+ item), calendar, date-picker and time-picker, with the MAUI names, properties and sizes. Select, DatePicker and TimePicker float their panel with ShellAnchoredPopup; the select list matches the trigger's width. The slider is custom-drawn in shadcn's style (track, range, ring thumb) instead of a re-tinted Fluent slider, whose thumb can't be made to match; it adds Step for the arrow keys. Checked: each P2 component installs alone into a fresh 'dotnet new avalonia.app' and builds with 0 warnings; all Avalonia components together build; in the demo the values apply from code, the select list matches its trigger and flips above it, the date picker opens on today, the time picker scrolls to the current hour; dropdown pick and popover Escape still work on the shared popup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third Avalonia slice of Phase 2: the P2 form controls.
shell
ShellAnchoredPopup: the floating-panel logic the popover host had (overlay-layer Popup under an anchor, click outside and Escape close it, one open at a time, open/close motion), now shared;ShellPopoverHostdelegates to itShellPlatform.StripNativeChrome(TextBox): the Fluent chrome clearing Input did inline, shared with Textarea (as on MAUI)Components
ShellAnchoredPopup; the select list matches the trigger's widthStepfor the arrow keysVerification
dotnet build ShellUI.Native.slnx: 0 warnings; tests 705/705; each commit builds the Avalonia demo and passes the testsdotnet new avalonia.appand builds with 0 warnings; all 46 Avalonia entries together buildDifferences from MAUI
ValueChangedpasses the newdouble; DatePickerDateChangedpasses the newDateTime