Creating an instance of a nested class in XAML

This question is pretty old, and I don’t know if it would have worked with the version of WPF back in 2010, but now you can make it work by using the “real” (internal) name of the nested type:

<local:A+B />

If you’ve ever looked a disassembled code, that’s how nested types look like:

ParentTypeName+Nested

Leave a Comment