public override void ViewDidLoad()
        {
            var checkbox = new BemCheckBox.BemCheckBox(new CGRect(10, 10, 50, 50), new MyBemCheckBoxDelegate());

            View.AddSubview(checkbox);
            base.ViewDidLoad();
        }
示例#2
0
        // Custom Methods

        private void ConfigureView()
        {
            CALayer bottomBorderUsername = new CALayer();

            bottomBorderUsername.BorderColor = Constants.DIVIDER_COLOR.CGColor;
            bottomBorderUsername.BorderWidth = 1;
            bottomBorderUsername.Frame       = new CGRect(0, this.tfUsername.Frame.Height - 1.0f, this.tfUsername.Frame.Size.Width, 1.0f);
            this.tfUsername.Layer.AddSublayer(bottomBorderUsername);

            CALayer bottomBorderPassword = new CALayer();

            bottomBorderPassword.BorderColor = Constants.DIVIDER_COLOR.CGColor;
            bottomBorderPassword.BorderWidth = 1;
            bottomBorderPassword.Frame       = new CGRect(0, this.tfPassword.Frame.Height - 1.0f, this.tfPassword.Frame.Size.Width, 1.0f);
            this.tfPassword.Layer.AddSublayer(bottomBorderPassword);

            checkbox = new BemCheckBox.BemCheckBox(new CGRect(0, 5, 20, 20), new MyBemCheckBoxDelegate());
            this.vwRemember.AddSubview(checkbox);

            bRememberMe = true;
            checkbox.On = bRememberMe;
        }
 public MyCaAnimationDelegate(BemCheckBox bemCheckBox)
 {
     _bemCheckBox = bemCheckBox;
 }
 /** Sent to the delegate every time the check box gets tapped.
  * @discussion This method gets triggered after the properties are updated (on), but before the animations, if any, are completed.
  * @seealso animationDidStopForCheckBox:
  * @param checkBox: The BEMCheckBox instance that has been tapped.
  */
 public void DidTapCheckBox(BemCheckBox checkBox)
 {
 }
 /** Sent to the delegate every time the check box finishes being animated.
  * @discussion This method gets triggered after the properties are updated (on), and after the animations are completed. It won't be triggered if no animations are started.
  * @seealso didTapCheckBox:
  * @param checkBox: The BEMCheckBox instance that was animated.
  */
 public void AnimationDidStopForCheckBox(BemCheckBox checkBox)
 {
 }
 public override void ViewDidLoad()
 {
     var checkbox = new BemCheckBox.BemCheckBox(new CGRect(10,10,50,50),new MyBemCheckBoxDelegate() );
     View.AddSubview(checkbox);
     base.ViewDidLoad();
 }
示例#7
0
 public MyCaAnimationDelegate(BemCheckBox bemCheckBox)
 {
     _bemCheckBox = bemCheckBox;
 }
示例#8
0
 /** Sent to the delegate every time the check box finishes being animated.
  * @discussion This method gets triggered after the properties are updated (on), and after the animations are completed. It won't be triggered if no animations are started.
  * @seealso didTapCheckBox:
  * @param checkBox: The BEMCheckBox instance that was animated.
  */
 public void AnimationDidStopForCheckBox(BemCheckBox checkBox)
 {
 }
示例#9
0
 /** Sent to the delegate every time the check box gets tapped.
  * @discussion This method gets triggered after the properties are updated (on), but before the animations, if any, are completed.
  * @seealso animationDidStopForCheckBox:
  * @param checkBox: The BEMCheckBox instance that has been tapped.
  */
 public void DidTapCheckBox(BemCheckBox checkBox)
 {
 }