public void Window1_Loaded(object sender, RoutedEventArgs args)
{
foreach (DependencyObject depObj
in LogicalTreeHelper.GetChildren(this.MyPanel))
{
Int32Collection ints =
(Int32Collection)depObj.GetValue(CustomControl1.IntsProperty);
Console.WriteLine(depObj.ToString() + " " + ints.ToString());
}
}
It seems as if the Int32CollectionValueSerializer is not doing his job
and the values it did not get deserialized from XAML/string correctly.
Only the the values "2 3 5" and the values "2,3,5" can be found. The
rest of the Int32Collections where the values in xaml have been "2,3"
"2 3" "2" and "2 " are empty.

Another very intersting phenomenon is that the designer of visual
studio Orcas Beta 1 (wich I used for this example) acutually gets it
right ! When the Designer creates and shows the wpf window embedded
in visual studio all 6 buttons have the correct values.

How come this happens? And what can I do against that? Is this a bug
in visual studio orcas ? I hope it is not abug in .NET 3.0