public static void SendTapMessage(DropDownTapArgs args) { var handler = OnTapFrom; if (handler != null) { handler (null, args); } }
public static void SendTapMessage(DropDownTapArgs args) { var handler = OnTapFrom; if (handler != null) { handler(null, args); } }
/// <summary> /// handle tap received. if tap outside bounds of control, close the dropdown /// </summary> /// <param name="args">Arguments.</param> public void DoHideDropDownOnTap(DropDownTapArgs args) { if (Device.OS == TargetPlatform.iOS) { System.Diagnostics.Debug.WriteLine ("Tap received"); if (this.IsShowing) { var test = NativeFrame.Contains (new Point (args.X, args.Y)); if (test == false) { this.CloseDropDown (); } } } }
/// <summary> /// handle tap received. if tap outside bounds of control, close the dropdown /// </summary> /// <param name="args">Arguments.</param> public void DoHideDropDownOnTap(DropDownTapArgs args) { if (Device.OS == TargetPlatform.iOS) { System.Diagnostics.Debug.WriteLine("Tap received"); if (this.IsShowing) { var test = NativeFrame.Contains(new Point(args.X, args.Y)); if (test == false) { this.CloseDropDown(); } } } }
private void OnTapFrom(object sender, DropDownTapArgs e) { this._Drop1.DoHideDropDownOnTap(e); this._Drop2.DoHideDropDownOnTap(e); }
private void OnTapFrom(object sender, DropDownTapArgs e) { this._Drop1.DoHideDropDownOnTap (e); this._Drop2.DoHideDropDownOnTap (e); }