MonoMobile.Views.DialogViewTable.TouchesEnded C# (CSharp) Method

TouchesEnded() public method

public TouchesEnded ( NSSet touches, UIEvent evt ) : void
touches NSSet
evt UIEvent
return void
		public override void TouchesEnded(NSSet touches, UIEvent evt)
		{
			base.TouchesEnded(touches, evt);
			
			//TODO : check this to make sure Control is ok or do we need another on like InputControl
			var source = Controller.TableView.Source as BaseDialogViewSource;
			if (source != null)
			{
				foreach (var section in source.Sections.Values)
				{
					foreach (var viewList in section.Views.Values)
					{
						foreach(var view in viewList)
						{
							var focusable = view as IFocusable;
							if (focusable != null && focusable.Control != null && focusable.Control.IsFirstResponder)
							{
								focusable.Control.ResignFirstResponder();
								break;
							}
						}
					}
				}
			}
			
			ResetTextShadow(true, touches);
		}