示例#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();
 }