Пример #1
0
        /// <inheritdoc/>
        protected override void OnTemplateChanged(AvaloniaPropertyChangedEventArgs e)
        {
            base.OnTemplateChanged(e);

            if (e.NewValue == null)
            {
                ItemContainerGenerator?.Clear();
            }
        }
Пример #2
0
 /// <inheritdoc/>
 void IItemsPresenterHost.RegisterItemsPresenter(IItemsPresenter presenter)
 {
     Presenter = presenter;
     ItemContainerGenerator.Clear();
 }