Наследование: Monospace11.TableViewControllerBase
        public void Flip()
        {
            // lazy load the non-default view
            if (locationView == null)
            {
                locationView = new MapLocationViewController(this);
                locationView.View.Frame = new RectangleF(0,0,this.View.Frame.Width, this.View.Frame.Height);
            }
            UIView.BeginAnimations("Flipper");
            UIView.SetAnimationDuration(1.25);
            UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
            if (mapView.View.Superview == null)
            {	// to map
                UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromRight, this.View, true);
                locationView.ViewWillAppear(true);
                mapView.ViewWillDisappear(true);

                locationView.View.RemoveFromSuperview();
                this.View.AddSubview(mapView.View);

                mapView.ViewDidDisappear(true);
                locationView.ViewDidAppear(true);
            }
            else
            {	// to list
                UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromLeft, this.View, true);
                mapView.ViewWillAppear(true);
                locationView.ViewWillDisappear(true);

                mapView.View.RemoveFromSuperview();
                this.View.AddSubview(locationView.View);

                locationView.ViewDidDisappear(true);
                mapView.ViewDidAppear(true);
            }
            UIView.CommitAnimations();
        }
		public void Flip()
		{
			// lazy load the non-default view
			if (locationView == null)
			{
				locationView = new MapLocationViewController(this); 
				locationView.View.Frame = new RectangleF(0,0,this.View.Frame.Width, this.View.Frame.Height);
			}
			UIView.BeginAnimations("Flipper");
			UIView.SetAnimationDuration(1.25);
			UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
			if (mapView.View.Superview == null)
			{	// to map
				UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromRight, this.View, true);
				locationView.ViewWillAppear(true);
				mapView.ViewWillDisappear(true);
				
				locationView.View.RemoveFromSuperview();
				this.View.AddSubview(mapView.View);
				
				mapView.ViewDidDisappear(true);
				locationView.ViewDidAppear(true);
			}
			else
			{	// to list
				UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromLeft, this.View, true);
				mapView.ViewWillAppear(true);
				locationView.ViewWillDisappear(true);
				
				mapView.View.RemoveFromSuperview();
				this.View.AddSubview(locationView.View);
				
				locationView.ViewDidDisappear(true);
				mapView.ViewDidAppear(true);
			}
			UIView.CommitAnimations();
		}
 public TableViewSource(MapLocationViewController controller, List <MonkeySpace.Core.MapLocation> locations)
 {
     dvc            = controller;
     this.locations = locations;
 }
 public TableViewSource(MapLocationViewController controller, List<MapLocation> locations)
 {
     _dvc = controller;
     _locations = locations;
 }
 public TableViewSource(MapLocationViewController controller, List<MonkeySpace.Core.MapLocation> locations)
 {
     dvc = controller;
     this.locations = locations;
 }
Пример #6
0
 public TableViewSource(MapLocationViewController controller, List <MapLocation> locations)
 {
     _dvc       = controller;
     _locations = locations;
 }