Collapsed != Expanded

Stupid mistake found after running the test app with WPF.