private void HandleOnSwipe(object sender, DraggableEventArgs evt) { if (!evt.Dragged.Equals(DraggableDirection.None)) { var message = evt.Dragged.Equals(DraggableDirection.Left) ? "You Chose Poorly" : "You Swiped Right"; new UIAlertView("Swiped", message, null, "OK", "OK").Show(); } }
void OnHueMove(DraggableEventArgs args) { HueHandleLeft = Math.Clamp((args.ClientX - args.Rect.Left) / args.Rect.Width, 0, 1); HSV.Hue = HueHandleLeft; var hsv = new HSV { Hue = HSV.Hue, Saturation = SaturationHandleLeft, Value = 1 - SaturationHandleTop, Alpha = AlphaHandleLeft }; Color = hsv.ToRGB().ToCSS(); TriggerChange(); }