コード例 #1
0
        protected virtual void Initialize()
        {
            pieView = new RoundProgressView.RoundProgressView(this.Bounds);
            pieView.StartAngle = (float)Math.PI/2;
            this.AddSubview(pieView);

            imgView = new UIImageView(this.Bounds);
            imgView.Image = _image;
            this.AddSubview(imgView);

            lblValue = new UILabel(this.Bounds);
            lblValue.BackgroundColor = UIColor.Clear;
            lblValue.TextAlignment = UITextAlignment.Center;
            lblValue.ShadowColor = UIColor.White;
            lblValue.ShadowOffset = new SizeF(0,1);
            this.AddSubview(lblValue);

            PiePadding = 0.0f;
        }