Skip to content

fix: Make Hyperlink.UnderlineStyleProperty public for WinUI API parity - #23653

Merged
MartinZikmund merged 2 commits into
masterfrom
copilot/fix-hyperlink-underline-style-property
Jul 6, 2026
Merged

MartinZikmund merged 2 commits into
masterfrom
copilot/fix-hyperlink-underline-style-property

Conversation

Copilot AI commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Hyperlink.UnderlineStyleProperty was declared internal, blocking all DP-based usage from external assemblies (ClearValue, SetBinding, styles, animations) despite the CLR wrapper property being public.

What changed? 🚀

  • Changed Hyperlink.UnderlineStyleProperty from internal to public in src/Uno.UI/UI/Xaml/Documents/Hyperlink.cs to match the WinUI API surface.

Before this fix, any external code referencing the DP identifier failed to compile:

var link = new Hyperlink();
link.UnderlineStyle = UnderlineStyle.None;           // OK
link.ClearValue(Hyperlink.UnderlineStyleProperty);   // CS0117 — was internal

PR Checklist ✅

Copilot AI requested review from Copilot and removed request for Copilot July 6, 2026 09:13
Copilot AI changed the title [WIP] Fix Hyperlink.UnderlineStyleProperty accessibility fix: Make Hyperlink.UnderlineStyleProperty public for WinUI API parity Jul 6, 2026
Copilot AI requested a review from MartinZikmund July 6, 2026 09:13
@MartinZikmund
MartinZikmund marked this pull request as ready for review July 6, 2026 09:52
@MartinZikmund
MartinZikmund enabled auto-merge July 6, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores WinUI API parity by making Hyperlink.UnderlineStyleProperty publicly accessible, enabling external assemblies to use DP-based APIs (e.g., ClearValue, bindings, styles, and animations) that were previously blocked by the internal modifier.

Changes:

  • Changed Hyperlink.UnderlineStyleProperty from internal to public.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 241f05c into master Jul 6, 2026
49 checks passed
@MartinZikmund
MartinZikmund deleted the copilot/fix-hyperlink-underline-style-property branch July 6, 2026 15:47
pull Bot pushed a commit to AKJUS/uno that referenced this pull request Sep 2, 2026
Five members were declared narrower than the WinUI reference surface,
the same class of defect as unoplatform#23653 (Hyperlink.UnderlineStyleProperty),
silently blocking external use despite the type being public:

- ItemsRepeaterScrollHost.HorizontalAnchorRatio (internal -> public)
- ItemsRepeaterScrollHost.VerticalAnchorRatio   (internal -> public)
- RepeatedScrollSnapPoint.Start                 (private  -> public)
- RepeatedScrollSnapPoint.End                   (private  -> public)
- ItemsSourceView.IndexOf(object)               (internal -> public)

Each was confirmed against the WinAppSDK 2.1 reference assembly and the
WinUI IDL. Widening accessibility is additive and non-breaking.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_011xvpioeKGiCR8NnouBZHwY
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.

Hyperlink.UnderlineStyleProperty is declared internal; should be public (WinUI API parity)

5 participants