protected override Panel createFrameworkElement( Panel parent, Action <AutoCompleteItem> selectWithClick, List <IRecyclable> recyclables, out ICollapsable collapsable) { Panel newParent; this.element = this.createElement(() => selectWithClick(this), recyclables, out newParent, out collapsable); this.element.Visibility = Visibility.Visible; parent.Children.Add(this.element); return(newParent); }
protected override TogglDesktop.AutoCompleteControls.ProjectCategory createElement( Action selectWithClick, List <IRecyclable> recyclables, out Panel newParent, out ICollapsable collapsable) { var element = StaticObjectPool.PopOrNew <TogglDesktop.AutoCompleteControls.ProjectCategory>() .Initialised(base.Item, selectWithClick) .MarkForRecycling(recyclables); newParent = element.TaskPanel; collapsable = element; return(element); }
protected abstract Panel createFrameworkElement( Panel parent, Action<AutoCompleteItem> selectWithClick, List<IRecyclable> recyclables, out ICollapsable collapsable );
protected abstract TFrameworkElement createElement( Action selectWithClick, List <IRecyclable> recyclables, out Panel newParent, out ICollapsable collapsable);
protected abstract Panel createFrameworkElement( Panel parent, Action <AutoCompleteItem> selectWithClick, List <IRecyclable> recyclables, out ICollapsable collapsable );