public override void ViewDidLoad()
 {
     base.ViewDidLoad ();
     var replayBtn = new KSPictureLoginBarButtonItem (UIBarButtonSystemItem.Play);
     replayBtn.Clicked += (sender, e) => this.Replay(5, UIColor.Red);
     var list = new List<UIBarButtonItem> ();
     list.Add (replayBtn);
     this.NavigationItem.SetRightBarButtonItems (list.ToArray(), false);
     // Get the image that is associated with the gesture.
     this.Image = UIImage.FromFile(AppDelegate.DemoImagePath);
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            var doneBtn = new KSPictureLoginBarButtonItem (UIBarButtonSystemItem.Done);
            doneBtn.PictureLoginController = this;
            doneBtn.Clicked += this.HandleDoneClicked;

            this.NavigationItem.SetRightBarButtonItems (new UIBarButtonItem[]
             			{
                this.ClearGestureButton,
                doneBtn
            }, false);
        }