Exemplo n.º 1
0
        private static void LinkAssemblies()
        {
            if (false.Equals(true))
            {
#pragma warning disable IDE0059 // Unnecessary assignment of a value
                var v1 = new BaseCellView();
                var v2 = new GroupHeaderView();
                var v3 = new BlankCellView();
                var v4 = new NullItemCellView();
                var v5 = new TextCellViewContent();
                var v6 = new HeaderCell <Label>();
                var v7 = new ItemCell <Label>();
                var v8 = new Cell <Label>();
#pragma warning restore IDE0059 // Unnecessary assignment of a value
            }
        }
Exemplo n.º 2
0
        internal BaseCellView MakeContentView(ItemWrapper item)
        {
            Type itemType = item.GetType();

            if (_contentTypes.ContainsKey(itemType))
            {
                Type contentType = _contentTypes[itemType];
                //var cellType = typeof(Cell<>).MakeGenericType (new[] { contentType });
                //var cellView = (BaseCellView)Activator.CreateInstance (cellType);
                //cellView.BindingContext = item;
                //return cellView;
                //System.Diagnostics.Debug.WriteLine("\t\tMakeContentView({0}) enter",item);
                var baseCellView = new BaseCellView();
                //var baseCellView = (BaseCellView)Activator.CreateInstance(BaseCellViewType);
                baseCellView.ContentView    = (View)Activator.CreateInstance(contentType);
                baseCellView.BindingContext = item;
                //System.Diagnostics.Debug.WriteLine("\t\tMakeContentView({0}) exit",item);
                return(baseCellView);
            }
            return(null);
        }
Exemplo n.º 3
0
#pragma warning disable IDE0060 // Remove unused parameter
        public BaseCellView Include(BaseCellView view)
        => new BaseCellView();