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
I'm parsing a TextBlock.Inlines collection to see if it contains a Hyperlink. The code works for normal Debug and Release builds, but fails when published trimmed. It seems that the contents of the Inlines collection have lost some type information, now only ever containing items of type Microsoft.UI.Xaml.Documents.Inline
Describe the bug
I'm parsing a
TextBlock.Inlines
collection to see if it contains aHyperlink
. The code works for normal Debug and Release builds, but fails when published trimmed. It seems that the contents of the Inlines collection have lost some type information, now only ever containing items of typeMicrosoft.UI.Xaml.Documents.Inline
Steps to reproduce the bug
For example, with the following xaml:
When parsing the visual tree with:
The code fails to find a
Hyperlink
inline when published trimmed using a publishing profile containing:Expected behavior
Type information is preserved
Screenshots
No response
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
the project references
The text was updated successfully, but these errors were encountered: