public MvxBindableListAdapter(Context context)
 {
     _context = context;
     _bindingActivity = context as IMvxBindingActivity;
     if (_bindingActivity == null)
         throw new MvxException("MvxBindableListView can only be used within a Context which supports IMvxBindingActivity");
 }
Example #2
0
 public MvxBindableListItemView(Context context, IMvxBindingActivity bindingActivity, int templateId, object source)
     : base(context)
 {
     _templateId      = templateId;
     _bindingActivity = bindingActivity;
     _content         = _bindingActivity.BindingInflate(source, templateId, this);
 }
 public MvxBindableListItemView(Context context, IMvxBindingActivity bindingActivity, int templateId, object source)
     : base(context)
 {
     _templateId = templateId;
     _bindingActivity = bindingActivity;
     _content = _bindingActivity.BindingInflate(source, templateId, this);
 }
 public MvxBindableListAdapter(Context context)
 {
     _context = context;
     _bindingActivity = context as IMvxBindingActivity;
     if (_bindingActivity == null)
         throw new MvxException("MvxBindableListView can only be used within a Context which supports IMvxBindingActivity");
     SimpleViewLayoutId = Resource.Layout.SimpleListItem1;
 }
Example #5
0
 public MvxBindableListAdapter(Context context)
 {
     _context         = context;
     _bindingActivity = context as IMvxBindingActivity;
     if (_bindingActivity == null)
     {
         throw new MvxException("MvxBindableListView can only be used within a Context which supports IMvxBindingActivity");
     }
 }
 public MvxDroidUserInterfaceBuilder(IMvxBindingActivity activity, object dataSource,
                                     IBuilderRegistry builderRegistry,
                                     string bindTag = MvxAutoViewConstants.MvxBindTag,
                                     string platformName = DroidConstants.PlatformName)
     : base(builderRegistry, platformName)
 {
     _propertyBuilder = new PropertyBuilder();
     var setter = new MvxBindingPropertySetter(activity.BindingManager, dataSource);
     _propertyBuilder.CustomPropertySetters[bindTag] = setter;
 }
Example #7
0
 public MvxBindableListAdapter(Context context)
 {
     _context         = context;
     _bindingActivity = context as IMvxBindingActivity;
     if (_bindingActivity == null)
     {
         throw new MvxException("MvxBindableListView can only be used within a Context which supports IMvxBindingActivity");
     }
     SimpleViewLayoutId = Resource.Layout.SimpleListItem1;
 }