/// <summary>
        /// Prepares the grid view.
        /// </summary>
        private void PrepareGridView()
        {
            //this.View.BackgroundColor = UIColor.Clear;
            var aGridView = new DSGridView(this);

            aGridView.LayoutParameters = new ViewGroup.LayoutParams(FrameLayout.LayoutParams.FillParent, FrameLayout.LayoutParams.FillParent);

            mGridView = aGridView;
            this.SetContentView(aGridView);
        }
Beispiel #2
0
 /// <summary>
 /// Prepares the grid view.
 /// </summary>
 private void PrepareGridView()
 {
     this.View.BackgroundColor = UIColor.Clear;
     m_GridView                  = new DSGridView();
     m_GridView.Frame            = this.View.Bounds;
     m_GridView.AutoresizingMask = View.AutoresizingMask;
     m_GridView.ShowsHorizontalScrollIndicator = true;
     m_GridView.ShowsVerticalScrollIndicator   = true;
     m_GridView.ShowSelection    = ShowSelection;
     m_GridView.Bounces          = mEnableBounce;
     m_GridView.DataSource       = DataSource;
     m_GridView.OnSingleCellTap += OnSingleCellTap;
     m_GridView.OnDoubleCellTap += OnDoubleCellTap;
     this.View.AddSubview(m_GridView);
 }
Beispiel #3
0
        private void PrepareGridView()
        {
            //this.View.BackgroundColor = UIColor.Clear;
            var aGridView = new DSGridView(this.Activity);

            aGridView.LayoutParameters = new ViewGroup.LayoutParams(FrameLayout.LayoutParams.FillParent, FrameLayout.LayoutParams.FillParent);
            //mGridView.AutoresizingMask = View.AutoresizingMask;
            //mGridView.ShowsHorizontalScrollIndicator = true;
            //mGridView.ShowsVerticalScrollIndicator = true;
            //mGridView.ShowSelection = ShowSelection;
            //mGridView.Bounces = mEnableBounce;
            aGridView.DataSource = DataSource;
            //mGridView.OnSingleCellTap += OnSingleCellTap;
            //mGridView.OnDoubleCellTap += OnDoubleCellTap;
            //this.View.AddSubview(mGridView);

            mGridView = aGridView;
        }