void ReleaseDesignerOutlets()
        {
            if (BaseTextView != null)
            {
                BaseTextView.Dispose();
                BaseTextView = null;
            }

            if (CurrentTextView != null)
            {
                CurrentTextView.Dispose();
                CurrentTextView = null;
            }

            if (BaseLabel != null)
            {
                BaseLabel.Dispose();
                BaseLabel = null;
            }

            if (CurrentLabel != null)
            {
                CurrentLabel.Dispose();
                CurrentLabel = null;
            }
        }
示例#2
0
        protected BaseValueCell(AContext context, Cell cell) : base(context, cell)
        {
            RemoveAccessoryStack();
            _Hint           = BaseTextView.Create <HintView>(ContentView, this, Resource.Id.CellHint);
            _CellValueStack = ValueStack();

            _Value = InstanceCreator.Create <TCell>(this, AndroidContext);
            // _Value = InstanceCreator<BaseCellView, AContext, TCell>.Create(this, AndroidContext);
            _CellValueStack.Add(_Value, Extensions.Layout.Match, Extensions.Layout.Wrap, GravityFlags.Fill | GravityFlags.Center);
        }
示例#3
0
 protected BaseAiTitledCell(AContext context, Cell cell) : base(context, cell)
 {
     ContentView = CreateContentView(Resource.Layout.CellLayout);
     _CellLayout = Layout();
     _Title      = BaseTextView.Create <TitleView>(ContentView, this, Resource.Id.CellTitle);
 }
示例#4
0
 protected BaseAiDescriptionCell(AContext context, Cell cell) : base(context, cell)
 {
     _Icon        = IconView.Create(ContentView, this, Resource.Id.CellIcon);
     _Description = BaseTextView.Create <DescriptionView>(ContentView, this, Resource.Id.CellDescription);
 }