/// <inheritdoc/> protected override void OnTemplateChanged(AvaloniaPropertyChangedEventArgs e) { base.OnTemplateChanged(e); if (e.NewValue == null) { ItemContainerGenerator?.Clear(); } }
/// <inheritdoc/> void IItemsPresenterHost.RegisterItemsPresenter(IItemsPresenter presenter) { Presenter = presenter; ItemContainerGenerator.Clear(); }