I have a very simple set of styles that I\'m using in a couple of different WPF applications. I have this style stored in a Xaml file in a common project, then added by merging
I was getting a XamlParseException with the message "Failed to create a 'Type' from the text 's:ScatterViewItem'", but only when running the application directly, not from the Visual Studio debugger.
This external answer told me that, for whatever reason, the necessary assembly hadn't been loaded yet. This StackOverflow answer showed me how to create a Main() function for my WPF app. I simply put "new ScatterViewItem();" at the top of my Main(), and the problem went away!
I have no idea what's going on here, especially since the ScatterViewItem is enclosed by a ScatterView from the same assembly. It sure sounds like a nasty bug in XAML parsing.