You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hyperlink.UnderlineStyleProperty is declared internal; should be public (WinUI API parity) #23652
The CLR wrapper Hyperlink.UnderlineStyleispublic, but the DependencyProperty identifier field is internal. Any external code that needs the identifier — e.g. GetValue/SetValue/ClearValue, SetBinding, a Setter in a style, or an animation targeting the property — fails to compile:
error CS0117: 'Hyperlink' does not contain a definition for 'UnderlineStyleProperty'
Expected behavior
In WinUI / Windows App SDK the identifier is public:
For API parity, Uno should expose Hyperlink.UnderlineStyleProperty as public, like every other public dependency-property identifier. The fix appears to be purely the accessibility modifier (internal → public); the DP is already fully registered and functional.
How to reproduce
From any project referencing Uno.WinUI (e.g. a Skia head):
usingMicrosoft.UI.Xaml.Documents;varlink=newHyperlink();link.UnderlineStyle=UnderlineStyle.None;// OK — CLR property is publiclink.ClearValue(Hyperlink.UnderlineStyleProperty);// CS0117 — identifier is internal
The first line compiles; the second does not.
Workaround
Set the CLR property directly (link.UnderlineStyle = ...) and avoid referencing the DP identifier. This loses DP-based scenarios (ClearValue, bindings, styles, animations against UnderlineStyleProperty).
Environment
Uno.WinUI: reproduced on 6.7.0-dev.534; the internal modifier is still present on master (commit ace8db8).
Target: net10.0-desktop (Skia). The field lives in shared Uno.UI source, so all heads are affected.
Activity
docs(uno): link the UnderlineStyle workaround to upstream Uno issue
revert(uno): drop the Hyperlink.UnderlineStyle workaround (fixed upst…
docs(uno): link the UnderlineStyle workaround to upstream Uno issue
revert(uno): drop the Hyperlink.UnderlineStyle workaround (fixed upst…