예제 #1
0
        public static void SendTapMessage(DropDownTapArgs args)
        {
            var handler = OnTapFrom;

            if (handler != null)
            {
                handler(null, args);
            }
        }
예제 #2
0
 /// <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();
             }
         }
     }
 }