private void ArrangeContentPresenter(FrameworkElement element, ColumnDefinition contentColumn, RowDefinition contentRow) { element.ApplyGridPosition(); Grid.SetColumn(element, ItemsHost.ColumnDefinitions.IndexOf(contentColumn)); Grid.SetRow(element, ItemsHost.RowDefinitions.IndexOf(contentRow)); if (ReferenceEquals(element, ContentPresenter)) { _childrenDefinitions[element] = new UIChildDefinition(contentColumn, contentRow); } }