Esempio n. 1
0
		public Cell (RectangleF frame) : base (frame)	
		{
			label = new UILabel (new RectangleF (PointF.Empty, frame.Size)) {
				AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth,
				TextAlignment = UITextAlignment.Center,
				Font = UIFont.BoldSystemFontOfSize (50.0f),
				BackgroundColor = UIColor.ScrollViewTexturedBackgroundColor,
			};

			UIImageView imageView = new UIImageView (new UIImage ("Images/rupert.png")) {
				Frame = label.Frame
			};

			label.Add (imageView);
			ContentView.AddSubview (label);

			ContentView.Layer.BorderWidth = 1.0f;
			ContentView.Layer.BorderColor = UIColor.White.CGColor;
		}
Esempio n. 2
0
        public Cell(RectangleF frame) : base(frame)
        {
            label = new UILabel(new RectangleF(PointF.Empty, frame.Size))
            {
                AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth,
                TextAlignment    = UITextAlignment.Center,
                Font             = UIFont.BoldSystemFontOfSize(50.0f),
                BackgroundColor  = UIColor.ScrollViewTexturedBackgroundColor,
            };

            UIImageView imageView = new UIImageView(new UIImage("Images/rupert.png"))
            {
                Frame = label.Frame
            };

            label.Add(imageView);
            ContentView.AddSubview(label);

            ContentView.Layer.BorderWidth = 1.0f;
            ContentView.Layer.BorderColor = UIColor.White.CGColor;
        }