Using DataTemplates to control views
Posted: 17 Jun 2026, 11:04
Hello!
I've been experimenting on best practices for showing views in a MVVM style. So I've set up some DataTemplates that hold the view and use the datatype of my view models.
It took a while to get it to even work in Noesis Studio until I found a thread mentioning that the data template shouldn't contain a x:Key. Removing that made it work at least inside Studio when I switched between the Sub view models in my main view model.
But for some reason I just can't seem to get it to work in Unity so I have a few questions:
1. Is there something I've missed in my setup? (I've attached my test case to the thread)
2. When doing bindings in Noesis Studio using the structures, it binds it to a NoesisInternals namespace that gives me errors inside Unity when trying to run.
Is there a best practice for handling namespaces and bindings towards unity based data?
3. Will there be a way to generate the data created in Noesis Studio into (in my case) a C# class that I can place in unity? Instead of having to set up the data in both places
I've been trying this out with the 4.0 Noesis Studio Unity beta
Thanks in advance!
I've been experimenting on best practices for showing views in a MVVM style. So I've set up some DataTemplates that hold the view and use the datatype of my view models.
It took a while to get it to even work in Noesis Studio until I found a thread mentioning that the data template shouldn't contain a x:Key. Removing that made it work at least inside Studio when I switched between the Sub view models in my main view model.
But for some reason I just can't seem to get it to work in Unity so I have a few questions:
1. Is there something I've missed in my setup? (I've attached my test case to the thread)
2. When doing bindings in Noesis Studio using the structures, it binds it to a NoesisInternals namespace that gives me errors inside Unity when trying to run.
Is there a best practice for handling namespaces and bindings towards unity based data?
3. Will there be a way to generate the data created in Noesis Studio into (in my case) a C# class that I can place in unity? Instead of having to set up the data in both places
I've been trying this out with the 4.0 Noesis Studio Unity beta
Thanks in advance!