escoz.CalendarMonthView.LayoutSubviews C# (CSharp) Method

LayoutSubviews() public method

public LayoutSubviews ( ) : void
return void
		public override void LayoutSubviews ()
		{
			if (calendarIsLoaded) return;
			
			_scrollView = new UIScrollView()
			{
				ContentSize = new SizeF(320, 260),
				ScrollEnabled = false,
				Frame = new RectangleF(0, 16 + headerHeight, 320, this.Frame.Height - 16),
				BackgroundColor = UIColor.White
			};
			
			//_shadow = new UIImageView(UIImage.FromBundle("Images/Calendar/shadow.png"));
			
			//LoadButtons();
			
			LoadInitialGrids();
			
			BackgroundColor = UIColor.Clear;

			AddSubview(_scrollView);

			//AddSubview(_shadow);

			_scrollView.AddSubview(_monthGridView);
			
			calendarIsLoaded = true;
		}