public override void OnApplyTemplate() { if (this.InternalItemsHost != null && !base.IsAncestorOf(this.InternalItemsHost)) { this.InternalItemsHost = null; } base.OnApplyTemplate(); this.UpdateItemsSource(); var row = this.Row; if (row != null) { row.CellsPresenter = this; } //this.SyncProperties(false); }