Skip to content

Revert usage of x:Reference #3886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JorisCleVR
Copy link
Contributor

We found out that the earlier change to x:Reference causes System.Xaml.XamlObjectWriterException to occur internally in XAML.

With some further digging we found in the documentation on https://learn.microsoft.com/en-us/dotnet/desktop/xaml-services/xreference-markup-extension?redirectedfrom=MSDN:
x:Reference is a construct defined in XAML 2009. In WPF, you can use XAML 2009 features, but only for XAML that is not WPF markup-compiled. Markup-compiled XAML and the BAML form of XAML do not currently support the XAML 2009 language keywords and features.

Thought the x:Reference at first glance seems to work it creates internal exceptions within XAML, therefore it is probably wise to revert it back.

@Keboo Keboo added this to the 5.3.0 milestone Jul 21, 2025
@Keboo Keboo enabled auto-merge (squash) July 21, 2025 17:29
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.

2 participants