Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            View = new UniversalView();
            var b = new UIButton(UIButtonType.System);

            b.Center = new CoreGraphics.CGPoint(200, 200);
            b.Bounds = new CoreGraphics.CGRect(0, 0, 400, 200);
            b.SetTitle("Camera", UIControlState.Normal);
            b.TouchUpInside += B_TouchUpInside;
            View.Add(b);

            t        = new UILabel();
            t.Center = new CoreGraphics.CGPoint(200, 400);
            t.Bounds = new CoreGraphics.CGRect(0, 0, 400, 400);
            View.Add(t);

            base.ViewDidLoad();


            // Perform any additional setup after loading the view
        }
Ejemplo n.º 2
0
        public override void ViewDidLoad()
        {
            View = new UniversalView();
            var b = new UIButton(UIButtonType.System);
            b.Center = new CoreGraphics.CGPoint(200, 200);
            b.Bounds = new CoreGraphics.CGRect(0, 0, 400, 200);
            b.SetTitle("Camera", UIControlState.Normal);
            b.TouchUpInside += B_TouchUpInside;
            View.Add(b);

            t = new UILabel();
            t.Center = new CoreGraphics.CGPoint(200, 400);
            t.Bounds = new CoreGraphics.CGRect(0, 0, 400, 400);
            View.Add(t);

            base.ViewDidLoad();

            
            // Perform any additional setup after loading the view
        }