Tuesday, October 29, 2013

Grid.Children.Add is not setting the parent property of the added element

Hi,


I have a grid defined in XAML.


In C# i am adding FrameworkElement objects to the grid by


gridObject.Children.Add(elementObject);


Grid.SetRow() Grid.SetColumn();


it seems as though the Parent property of the element is not getting set to the gridObject.


Does anyone know what is casuing this?


No comments:

Post a Comment