My XAML code looked like this:
In the design view this actually showed the correct selected item, however it didn't work when the app was ran.
SolutionThe solution was actually very trivial. If you take a look at my code you'll see that the
SelectedItemproperty is defined before the
ItemSourceproperty. It came out that the order does matter, so the
SelectedItemshould be defined after the