Skip to content

feat(controls): add RadioGroup horizontal/borderless modes and ProgressRing (#202, #204) - #206

Merged
239573049 merged 2 commits into
mainfrom
feat/radiogroup-and-progressring-202-204
Nov 25, 2026
Merged

239573049 merged 2 commits into
mainfrom
feat/radiogroup-and-progressring-202-204

Conversation

@239573049

Copy link
Copy Markdown
Member

Fixes #202
Fixes #204

Summary

  • RadioGroup ([Feature] RadioGroup: horizontal layout and borderless radio style #202):
    • Added Orientation (Vertical / Horizontal, :horizontal) and Variant (RadioGroupVariant.Default / Borderless, :borderless).
    • Added internal RadioGroupPanel so switching orientation or variant updates layout and token-backed spacing without recreating item containers or losing focus; horizontal mode flips Left/Right arrows in RTL.
    • Borderless variant removes card border, hover fill and gliding highlight while preserving ring/dot visuals, optional description, single tab stop, keyboard navigation, disabled skipping, and borderless focus ring geometry.
    • Appended new RadioGroupToken properties (including Compact density values) without shifting existing enum ordinals.
  • ProgressRing (增加一个ProgressRing组件 #204):
    • Added ProgressRing (RangeBase) supporting both determinate circular progress and indeterminate spinning states (IsIndeterminate), preset sizes (ControlSize.Small / Medium / Large), Thickness, Label, IsValueVisible, custom centered Content / ContentTemplate, read-only Percentage / IsComplete, ProgressRingToken (with Compact density), and ProgressBar accessibility semantics.
    • Zero-allocation drawing via ProgressRingTrack (LiveLoop in indeterminate mode, ArcSpring.Smooth in determinate mode, full/reduced/off motion support) and cached TextLayout readout via ProgressRingReadout.
  • Updated src/TKCode.Arc/PublicAPI.Unshipped.txt.

Tests

  • dotnet build src/TKCode.Arc -c Debug (net8.0 / net10.0 / net11.0): 0 warnings, 0 errors.
  • dotnet test tests/TKCode.Arc.Tests --filter "FullyQualifiedName~RadioGroupTests|FullyQualifiedName~ProgressRingTests": 26/26 passed.

@239573049
239573049 merged commit 1462ce4 into main Nov 25, 2026
28 checks passed
@239573049
239573049 deleted the feat/radiogroup-and-progressring-202-204 branch November 25, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

增加一个ProgressRing组件 [Feature] RadioGroup: horizontal layout and borderless radio style

1 participant