public static void SendTapMessage(DropDownTapArgs args)
		{
			var handler = OnTapFrom;
			if (handler != null)
			{
				handler (null, args);
			}
		}
Exemple #2
0
        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 ();
					}
				}
			}
		}
Exemple #4
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();
             }
         }
     }
 }
Exemple #5
0
 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);
		}