Question regarding x:class
Posted: 02 Feb 2017, 22:54
So I found this tutorial video on your Youtube channel:
https://www.youtube.com/watch?v=50aPNUYSPyA&t=608s
It states that it is very important to remove the x:class attribute for a usercontrol that is used as the root element to work. Is this still the case?
I'm a bit confused about this because I now see some samples still using the attribute and code behind.
My basic questions:
- What was the problem with x:class in this tutorial exactly? Is that outdated?
- Is it now ok to keep x:class in any element or is it not allowed in the root element?
- If x:class was or is not allowed, how did or do custom user controls get referenced in other XAML. It's usually done by the class name and namespace, which isn't present without the x:class declaration.
I might be confused because of outdated info here, I have not been looking into Noesis in a while and just came back bringing myself up to date. So is my info outdated and x:class is now always ok? Should I keep the code generated code behind file now or should/can I still delete it?
I see people use code behind in their workflows now, using #if checks to make sure the correct namespaces are included in case unity compiles it insteas of it running against WPF. But is that code behind always needed? Is it allowed on the root element of the NoesisGUIPanel?
If this stuff is outdated maybe you guys should pull some of the old documentation. It's really confusing to figure out what the current API and workflow is.
https://www.youtube.com/watch?v=50aPNUYSPyA&t=608s
It states that it is very important to remove the x:class attribute for a usercontrol that is used as the root element to work. Is this still the case?
I'm a bit confused about this because I now see some samples still using the attribute and code behind.
My basic questions:
- What was the problem with x:class in this tutorial exactly? Is that outdated?
- Is it now ok to keep x:class in any element or is it not allowed in the root element?
- If x:class was or is not allowed, how did or do custom user controls get referenced in other XAML. It's usually done by the class name and namespace, which isn't present without the x:class declaration.
I might be confused because of outdated info here, I have not been looking into Noesis in a while and just came back bringing myself up to date. So is my info outdated and x:class is now always ok? Should I keep the code generated code behind file now or should/can I still delete it?
I see people use code behind in their workflows now, using #if checks to make sure the correct namespaces are included in case unity compiles it insteas of it running against WPF. But is that code behind always needed? Is it allowed on the root element of the NoesisGUIPanel?
If this stuff is outdated maybe you guys should pull some of the old documentation. It's really confusing to figure out what the current API and workflow is.
