상속: MonoBehaviour
예제 #1
0
        public View GetFooterView(Context context, View convertView, ViewGroup parent)
        {
            if (FooterView != null)
            {
                return(FooterView.GetView(context, convertView, parent));;
            }

            if (Footer != null)
            {
                var view = (convertView as TextView) ?? new TextView(context);
                view.Gravity = GravityFlags.Center;
                if (Caption.Length >= 0)
                {
                    view.Text       = Footer;
                    view.Visibility = ViewStates.Visible;
                }
                else
                {
                    view.Text       = string.Empty;
                    view.Visibility = ViewStates.Visible;
                }
                return(view);
            }

            // invisible/empty section footer, could be re-shown by setting the footer and refreshing the list
            return(new View(context, null)
            {
                LayoutParameters = new ListView.LayoutParams(ListView.LayoutParams.FillParent, 0),
                Visibility = ViewStates.Gone,
            });
        }
예제 #2
0
        public PartialViewResult Footer()
        {
            vuong_cms_context __db  = new vuong_cms_context();
            FooterView        model = new FooterView()
            {
                Statistic           = this._counterRepo.GetCounter(),
                DanhMucSanPhamChinh = new List <ProductCat>(),
                DsBaiVietFooter     = __db.Article.Where(w => w.CategoryId == 3).OrderByDescending(q => q.ModifiedDate).ToList()
            };

            return(PartialView(model));
        }
예제 #3
0
        private void KeyboardWillChange(nfloat bottom, NSNotification notification)
        {
            var duration = UIKeyboard.AnimationDurationFromNotification(notification);

            FooterView.SetNeedsLayout();

            FooterViewBottomConstraint.Constant = bottom;

            UIView.Animate(
                duration: duration,
                animation: FooterView.LayoutIfNeeded);
        }
        void ReleaseDesignerOutlets()
        {
            if (FooterView != null)
            {
                FooterView.Dispose();
                FooterView = null;
            }

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

            if (RateButton != null)
            {
                RateButton.Dispose();
                RateButton = null;
            }
        }
        /// <summary>
        /// Gets the view for footer.
        /// </summary>
        /// <returns>The view for footer.</returns>
        /// <param name="tableView">Table view.</param>
        /// <param name="section">Section.</param>
        public override UIView GetViewForFooter(UITableView tableView, nint section)
        {
            var text = TitleForFooter(tableView, section);

            if (string.IsNullOrEmpty(text))
            {
                return(new UIView(CGRect.Empty));
            }

            var container = new FooterView(_settingsView.FooterPadding.ToUIEdgeInsets());

            container.BackgroundColor = _settingsView.FooterBackgroundColor.ToUIColor();

            var label = container.Label;

            label.Text      = text;
            label.TextColor = _settingsView.FooterTextColor == Color.Default ?
                              UIColor.Gray : _settingsView.FooterTextColor.ToUIColor();
            label.Font = UIFont.SystemFontOfSize((nfloat)_settingsView.FooterFontSize);

            return(container);
        }
        void ReleaseDesignerOutlets()
        {
            if (BackgroundView != null)
            {
                BackgroundView.Dispose();
                BackgroundView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (textSender != null)
            {
                textSender.Dispose();
                textSender = null;
            }
        }
예제 #8
0
        void ReleaseDesignerOutlets()
        {
            if (btnCompararUno != null)
            {
                btnCompararUno.Dispose();
                btnCompararUno = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (tblProducts != null)
            {
                tblProducts.Dispose();
                tblProducts = null;
            }
        }
예제 #9
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundImageView != null)
            {
                BackgroundImageView.Dispose();
                BackgroundImageView = null;
            }

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

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

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

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

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

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

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

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

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

            if (AccountsView != null)
            {
                AccountsView.Dispose();
                AccountsView = null;
            }
        }
예제 #10
0
        void ReleaseDesignerOutlets()
        {
            if (JoinContainerView != null)
            {
                JoinContainerView.Dispose();
                JoinContainerView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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