Ejemplo n.º 1
0
        void RunDebugUI()
        {
            var rect = new RectangleF (10, 20, 280, 400);
            var top = new UIView (rect){
                BackgroundColor = UIColor.FromRGBA (0, 0, 0, 100)
            };
            var button = UIButton.FromType (UIButtonType.RoundedRect);
            button.Frame = new RectangleF (10, 340, 80, 36);
            button.SetTitle ("Done", UIControlState.Normal);
            button.TouchDown += delegate {
                top.RemoveFromSuperview ();
                timer.Dispose ();
            };
            top.AddSubview (button);
            rect = new RectangleF (5, 5, 270, 350);
            var dbg = new ImageLoaderDebug (rect);
            top.AddSubview (dbg);
            window.AddSubview (top);

            timer = new System.Threading.Timer (x => { BeginInvokeOnMainThread (dbg.Layout); }, null, 500, 500);
        }
Ejemplo n.º 2
0
        void RunDebugUI()
        {
            var rect = new RectangleF(10, 20, 280, 400);
            var top  = new UIView(rect)
            {
                BackgroundColor = UIColor.FromRGBA(0, 0, 0, 100)
            };
            var button = UIButton.FromType(UIButtonType.RoundedRect);

            button.Frame = new RectangleF(10, 340, 80, 36);
            button.SetTitle("Done", UIControlState.Normal);
            button.TouchDown += delegate {
                top.RemoveFromSuperview();
                timer.Dispose();
            };
            top.AddSubview(button);
            rect = new RectangleF(5, 5, 270, 350);
            var dbg = new ImageLoaderDebug(rect);

            top.AddSubview(dbg);
            window.AddSubview(top);

            timer = new System.Threading.Timer(x => { BeginInvokeOnMainThread(dbg.Layout); }, null, 500, 500);
        }