Exemplo n.º 1
0
 protected virtual MvxTableViewSource CreateSource(UITableView tableView)
 {
     return(new GeneralTableViewSource(
                tableView,
                DefaultLayout as IMvxLayoutListItemViewFactory,
                ItemLayouts.ToDictionary(x => x.Key, x => x.Value as IMvxLayoutListItemViewFactory)));
 }
Exemplo n.º 2
0
        protected virtual MvxLayoutDrivenAdapter CreateAdapter(Context context)
        {
#warning TODO - this "casting" could be more efficient
            return(new MvxLayoutDrivenAdapter(
                       context,
                       DefaultLayout as IMvxLayoutListItemViewFactory,
                       ItemLayouts.ToDictionary(x => x.Key, x => x.Value as IMvxLayoutListItemViewFactory)));
        }