-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
Type or namespace name 'Ui' does not exist in the namespace when I set a name to a wpf-ui component in xaml #1144
Comments
It looks like there is something else in your project whose namespace has |
How do I set global:Wpf.Ui namespce in xaml? It's working on codebehind, but I need it in xaml for x:Name. |
To understand the error, it would be best if you sent the entire code that would allow to reproduce the error. |
In xaml: |
Would be better full .csproj in zip or repo |
Unfortunately I can't share this project.. |
You don't have to send the project, just the minimal code that causes the error |
I ran into this now, with a project being named Try renaming the project so it doesn't end/have |
Describe the bug
Hi, I'm using wpf-ui on my wpf app. It's working, but when I write x:name or name to a component in the xaml it gives me the following error:
The type or namespace name 'Ui' does not exist in the namespace 'Client.Wpf' (are you missing an assembly reference?)
If I cancel the name or x:name the error will go away.
To Reproduce
Set name or x:name to a wpf-ui component.
Expected behavior
x:name in wpf-ui component working
Screenshots
No response
OS version
Windows 11
.NET version
8.0
WPF-UI NuGet version
3.0.4
Additional context
No response
The text was updated successfully, but these errors were encountered: