The perils of binding to value types in XAML
cppdashboard.dev/r/2026/09/the-perils-of-binding-to-value-types-in-xamlThis article discusses issues encountered when binding to value types in XAML, particularly with the FlipView control. It explains how using structs instead of runtime classes can simplify the data model and avoid boilerplate code.
From the article
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.
Share this resource