Example #1
0
 public ForwardingView(CGRect frame) :
     base(frame)
 {
     this.touchToView            = new SafeDict <UITouch, UIView>();
     this.ContentMode            = UIViewContentMode.Redraw;
     this.MultipleTouchEnabled   = true;
     this.UserInteractionEnabled = true;
     this.Opaque = false;
 }
        public static nfloat metric(string name)
        {
            var metrics = new SafeDict <String, Double>()
            {
                { "topBanner", 40 },
                { "topSpacer", 20 }
            };

            if (!metrics.ContainsKey(name))
            {
                return(0);
            }

            return((nfloat)(metrics[name]));
        }