[MS] The perils of binding to value types in XAML - devamazonaws.blogspot.com
A colleague ran into trouble with their XAML program. They were using a FlipView control to bind to a collection, but when the user tried to navigate the FlipView using an assistive technology tool, there were cases where the navigation failed. Some time later, they came back with the solution to the mystery. The team noticed that their data model consisted only of strings and other value types, so they decided to declare their data model as a struct rather than a full runtimeclass , thereby avoiding a lot of boilerplate typing. If defined as a runtimeclass : // MyComponent.idl runtimeclass MyPageContent { String Title { get; }; String Description { get; }; String LinkUri { get; }; Boolean IsNew{ get; }; } // MyPageContent.h namespace winrt::MyComponent { struct MyPageContent : implements<MyPageContent> { MyPageContent(hstring const& title, hstring const& description, hstring const& link,...