protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
        {
            CustomCell cell = (CustomCell)item;


            switch (cell.TipoHoja)
            {
            case 1:
                //var mytemplate = new DataTemplate(typeof(EssentialTemplate));
                EssentialTemplate.SetValue(BaseTemplate.ParentBindingContextProperty, container.BindingContext);

                return(EssentialTemplate);

            //case "2":
            //    return AddJobTemplate;
            //case "3":
            //    return AddJobDetailTemplate;
            default:
                return(EssentialTemplate);
            }

            // return AddJobTemplate;
        }
Beispiel #2
0
        protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
        {
            CustomCell cell = (CustomCell)item;

            switch (cell.TipoHoja)
            {
            case 1:
                EssentialTemplate.SetValue(BaseTemplate.ParentBindingContextProperty, container.BindingContext);
                return(EssentialTemplate);

            case 2:
                CongratsTemplate.SetValue(BaseTemplate.ParentBindingContextProperty, container.BindingContext);
                return(CongratsTemplate);

            case 3:
                StartTemplate.SetValue(BaseTemplate.ParentBindingContextProperty, container.BindingContext);
                return(StartTemplate);

            default:
                return(EssentialTemplate);

                ;
            }
        }