void SetLogicalParent (IntPtr parent, IList items)
{
if (ItemsSource != null)
return;
foreach (object o in items) {
DependencyObject dep = o as DependencyObject;
FrameworkElement el = o as FrameworkElement;
if (el != null)
Mono.NativeMethods.framework_element_set_logical_parent (el.native, parent);
}
}