Replies: 1 comment
-
@Axemasta Did you ever solve this? I am facing the same problem, but it only occurs when consuming the Xmlns in a resource dictionary file that gets merged. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The maui app i'm working on is starting to get a little view heavy and I have organized my viewmodels into folders, meaning they occupy different namespaces. Something I've usually done for Xamarin apps is have a seperate assembly for things like controls, effects and then reference them with an
XmnlsDefinition
in my xaml since its super clean.I was playing around with my viewmodel namespace seeing if I could do the same, my viewmodels all live within my Maui app assembly:
This works with xaml intellisense in Rider, when specifying the compiled bindings for my view:
However when compiling I do see an error:
I have implemented
XmlnsDefinition
s before, I have 2 in my app (in 2 seperate class libraries) and multiple in custom libraries I am consuming for my app. I have seen the info from Stephane here for maui.The attributes are setup correctly, I have hard references to my views and viewmodels (I am using Prism and have registered them, manually creating instances of my viewmodels still doesnt fix this).
Is this just not supported? Should this be supported (It would certainly be helpful!). If its not supported can we update the documentation to make this clear. I found an SO post for WPF saying it's not supported but that was 13 years ago... Are things still this way? 🙄
Beta Was this translation helpful? Give feedback.
All reactions