Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 protected abstract Panel createFrameworkElement(
     Panel parent, Action<AutoCompleteItem> selectWithClick,
     List<IRecyclable> recyclables, out ICollapsable collapsable
     );
Ejemplo n.º 4
0
 protected abstract TFrameworkElement createElement(
     Action selectWithClick, List <IRecyclable> recyclables,
     out Panel newParent, out ICollapsable collapsable);
Ejemplo n.º 5
0
 protected abstract Panel createFrameworkElement(
     Panel parent, Action <AutoCompleteItem> selectWithClick,
     List <IRecyclable> recyclables, out ICollapsable collapsable
     );