Ejemplo n.º 1
0
        //        public ProgressPieControl()
        //        {
        //        }

        #endregion

        #region Overrided members

        public override void AwakeFromNib()
        {
            _pieTimerLayer = new ProgressPieControlLayer();
            Layer          = SetupLayers();
            _progressLayer.Bind("path", _pieTimerLayer, "currentPath", null);
            _textLayer.Bind("string", _pieTimerLayer, "currentString", null);
            State      = 0;
            WantsLayer = true;
        }
Ejemplo n.º 2
0
        CAShapeLayer SetupProgressLayer()
        {
            _progressLayer = new CAShapeLayer
            {
                ShadowOpacity = ProgressButtonFloats.ProgressLayerShadowOpacity.AsResourceFloat(),
                FillColor     = ProgressButtonColors.FillProgressColor.AsResourceCgColor()
            };
            _progressLayer.Bind("path", _progressButtonLayer, "curPath", null);
            var checkMarkLayer = new CALayer();

            checkMarkLayer.Frame = ProgressButtonRects.CheckMarkFrame.AsRect();
            checkMarkLayer.Bind("contents", _progressButtonLayer, "curImage", null);
            _progressLayer.AddSublayer(checkMarkLayer);
            return(_progressLayer);
        }