Exemplo n.º 1
0
 public override void DestroyItem(Android.Views.ViewGroup container, int position, Java.Lang.Object objectValue)
 {
     base.DestroyItem (container, position, objectValue);
     var myview = objectValue as Android.Views.View;
     var viewPager = container.JavaCast<Android.Support.V4.View.ViewPager> ();
     viewPager.RemoveView (myview);
     myview = null;
 }
Exemplo n.º 2
0
		/// <summary>
		/// Destroys the item.
		/// </summary>
		/// <param name="container">The container.</param>
		/// <param name="position">The position.</param>
		/// <param name="object">The object.</param>
		public override void DestroyItem(Android.Views.View container, int position, Java.Lang.Object @object)
		{
			//activePickerViews[position].OnDateSelected -= HandleOnDateSelected;
			//activePickerViews.Remove(position);
			var monthView = @object.JavaCast<MonthView>();
			(container.JavaCast<Android.Support.V4.View.ViewPager>()).RemoveView(monthView);
			_reusableMonthView = monthView;
			_activeMonthViews.Remove(position);
		}