Пример #1
0
 public void DoLayout()
 {
     App.Inst.PositionMainViewTitle(TitleLabel);
     if (_select != null && View != null)
     {
         var y = TitleLabel.Frame.Bottom + App.Inst.LabelGap;
         _select.Frame = new RectangleF(TitleLabel.Frame.Left, y, TitleLabel.Frame.Width, View.Frame.Height - y);
         _select.DoLayout();
     }
 }
Пример #2
0
        public void DoLayout()
        {
            var left = HomeBtn.Frame.Right + 2;

            var h = View.StringSize(TitleLabel.Text, TitleLabel.Font).Height;

            TitleLabel.Lines           = 1;
            TitleLabel.MinimumFontSize = Theme.TextFont.PointSize;

            TitleLabel.Frame = new RectangleF(left, 0, View.Frame.Width - left, h);

            if (_buttons != null)
            {
                _buttons.Frame = new RectangleF(left, h, View.Frame.Width - left, View.Frame.Height - h - 10);
                _buttons.DoLayout();
            }
        }