/// <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); }
/// <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); }
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; }