Ejemplo n.º 1
0
		public static void SendTapMessage(DropDownTapArgs args)
		{
			var handler = OnTapFrom;
			if (handler != null)
			{
				handler (null, args);
			}
		}
Ejemplo n.º 2
0
        public static void SendTapMessage(DropDownTapArgs args)
        {
            var handler = OnTapFrom;

            if (handler != null)
            {
                handler(null, args);
            }
        }
Ejemplo n.º 3
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 ();
					}
				}
			}
		}
Ejemplo n.º 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();
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void OnTapFrom(object sender, DropDownTapArgs e)
 {
     this._Drop1.DoHideDropDownOnTap(e);
     this._Drop2.DoHideDropDownOnTap(e);
 }
Ejemplo n.º 6
0
		private void OnTapFrom(object sender, DropDownTapArgs e)
		{
			this._Drop1.DoHideDropDownOnTap (e);
			this._Drop2.DoHideDropDownOnTap (e);
		}