Example #1
0
		public void ShowVisitDetails(VMVisit visit)
		{
			if (visit == null)
				return;
			var popupViewController = new PopupViewController {View = {Frame = View.Bounds}};
			//popupViewController.ContentView = new UIView(new RectangleF(0,0,200,200)){BackgroundColor = UIColor.Red};
			popupViewController.ContentView = new VisitDetailsView
			{
				Parent = popupViewController,
				Visit = visit,
				MainPage = mainView.ViewModel,
				Close = ()=> popupViewController.Hide()
			};
			popupViewController.Show(this.NavigationController);
		}
        public void ShowVisitDetails(VMVisit visit)
        {
            if (visit == null)
            {
                return;
            }
            var popupViewController = new PopupViewController {
                View = { Frame = View.Bounds }
            };

            //popupViewController.ContentView = new UIView(new RectangleF(0,0,200,200)){BackgroundColor = UIColor.Red};
            popupViewController.ContentView = new VisitDetailsView
            {
                Parent   = popupViewController,
                Visit    = visit,
                MainPage = mainView.ViewModel,
                Close    = () => popupViewController.Hide()
            };
            popupViewController.Show(this.NavigationController);
        }