예제 #1
0
            public TableSource(ConnectMainPageViewController parent)
            {
                Parent = parent;

                // create the primary table cell
                PrimaryTableCell         = new PrimaryCell(parent.View.Bounds.Size, UITableViewCellStyle.Default, PrimaryCell.Identifier);
                PrimaryTableCell.Bounds  = parent.View.Bounds;
                PendingPrimaryCellHeight = PrimaryTableCell.Title.Frame.Bottom;// + Rock.Mobile.Graphics.Util.UnitToPx( 2 );
            }
            public TableSource( ConnectMainPageViewController parent )
            {
                Parent = parent;

                PrimaryTableCell = new PrimaryCell( parent.View.Bounds.Size, UITableViewCellStyle.Default, PrimaryCell.Identifier );
                PrimaryTableCell.TableSource = this;

                // take the parent table's width so we inherit its width constraint
                PrimaryTableCell.Bounds = parent.View.Bounds;

                // configure the cell colors
                PrimaryTableCell.BackgroundColor = Rock.Mobile.UI.Util.GetUIColor( ControlStylingConfig.BG_Layer_Color );
                PrimaryTableCell.SelectionStyle = UITableViewCellSelectionStyle.None;

                //PendingPrimaryCellHeight = PrimaryTableCell.BottomBanner.Frame.Bottom;
                PendingPrimaryCellHeight = PrimaryTableCell.Title.Frame.Bottom;
            }
            public TableSource ( ConnectMainPageViewController parent )
            {
                Parent = parent;

                // create the primary table cell
                PrimaryTableCell = new PrimaryCell( parent.View.Bounds.Size, UITableViewCellStyle.Default, PrimaryCell.Identifier );
                PrimaryTableCell.Bounds = parent.View.Bounds;
                PendingPrimaryCellHeight = PrimaryTableCell.Title.Frame.Bottom;// + Rock.Mobile.Graphics.Util.UnitToPx( 2 );


                // create the seperator table cell
                SeperatorTableCell = new SeperatorCell( parent.View.Bounds.Size, UITableViewCellStyle.Default, SeperatorCell.Identifier );
                SeperatorTableCell.Bounds = parent.View.Bounds;
                PendingSeperatorCellHeight = SeperatorTableCell.Title.Frame.Bottom;// + Rock.Mobile.Graphics.Util.UnitToPx( 2 );
            }