public override void ViewDidLoad() { base.ViewDidLoad(); View.Apply(Style.Screen); NavigationBar.Apply(Style.NavigationBar); Delegate = new NavDelegate(); panGesture = new UIPanGestureRecognizer(OnPanGesture) { // TODO: TableView scroll gestures are not // compatible with the open / close pan gesture. ShouldRecognizeSimultaneously = (a, b) => !(b.View is UITableView), CancelsTouchesInView = true, }; View.AddGestureRecognizer(panGesture); fadeView = new UIView(); fadeView.BackgroundColor = UIColor.FromRGBA(29f / 255f, 29f / 255f, 28f / 255f, 0.5f); fadeView.Frame = new CGRect(0, 0, View.Frame.Width, View.Frame.Height); fadeView.Hidden = true; tapGesture = new UITapGestureRecognizer(CloseMenu) { ShouldReceiveTouch = (a, b) => true, ShouldRecognizeSimultaneously = (a, b) => true, CancelsTouchesInView = true, }; fadeView.AddGestureRecognizer(tapGesture); View.Add(fadeView); }
public ShellSectionRenderer(IShellContext context, Type navigationBarType, Type toolbarType) : base(navigationBarType, toolbarType) { Delegate = new NavDelegate(this); _context = context; _context.Shell.PropertyChanged += HandleShellPropertyChanged; }
public override void ViewDidLoad () { base.ViewDidLoad (); View.Apply (Style.Screen); NavigationBar.Apply (Style.NavigationBar); Delegate = new NavDelegate (); panGesture = new UIPanGestureRecognizer (OnPanGesture) { // TODO: TableView scroll gestures are not // compatible with the open / close pan gesture. ShouldRecognizeSimultaneously = (a, b) => ! (b.View is UITableView), CancelsTouchesInView = true, }; View.AddGestureRecognizer (panGesture); fadeView = new UIView(); fadeView.BackgroundColor = UIColor.FromRGBA (29f / 255f, 29f / 255f, 28f / 255f, 0.5f); fadeView.Frame = new CGRect (0, 0, View.Frame.Width, View.Frame.Height); fadeView.Hidden = true; tapGesture = new UITapGestureRecognizer (CloseMenu) { ShouldReceiveTouch = (a, b) => true, ShouldRecognizeSimultaneously = (a, b) => true, CancelsTouchesInView = true, }; fadeView.AddGestureRecognizer (tapGesture); View.Add (fadeView); }
public ShellSectionRenderer(IShellContext context) : base() { Delegate = new NavDelegate(this); _context = context; _context.Shell.PropertyChanged += HandleShellPropertyChanged; _context.Shell.Navigated += OnNavigated; _context.Shell.Navigating += OnNavigating; }
public override void ViewDidLoad () { base.ViewDidLoad (); View.Apply (Style.Screen); NavigationBar.Apply (Style.NavigationBar); Delegate = navDelegate = new NavDelegate (); InteractivePopGestureRecognizer.ShouldBegin = GestureRecognizerShouldBegin; interactiveEdgePanGestureRecognizer = new UIScreenEdgePanGestureRecognizer (OnEdgePanGesture) { Edges = UIRectEdge.Left, ShouldBegin = GestureRecognizerShouldBegin, }; View.AddGestureRecognizer (interactiveEdgePanGestureRecognizer); }
public override void ViewDidLoad() { base.ViewDidLoad(); View.Apply(Style.Screen); NavigationBar.Apply(Style.NavigationBar); Delegate = navDelegate = new NavDelegate(); InteractivePopGestureRecognizer.ShouldBegin = GestureRecognizerShouldBegin; interactiveEdgePanGestureRecognizer = new UIScreenEdgePanGestureRecognizer(OnEdgePanGesture) { Edges = UIRectEdge.Left, ShouldBegin = GestureRecognizerShouldBegin, }; View.AddGestureRecognizer(interactiveEdgePanGestureRecognizer); }
public ModalWindowController(string startUri, string endUriRoot) : base("ModalWindow") { StartUri = startUri; EndUriRoot = endUriRoot; Result = null; ModalDelegate = new WindowDelegate(() => { App.AbortModal(); }); NavigationDelegate = new NavDelegate(d => { if (d.StartsWith(EndUriRoot, StringComparison.InvariantCultureIgnoreCase)) { Result = d; Window.Close(); } }); }
public ShellSectionRenderer(IShellContext context) { Delegate = new NavDelegate(this); _context = context; _context.Shell.PropertyChanged += HandleShellPropertyChanged; }
public ShellSectionRenderer(IShellContext context) { Delegate = new NavDelegate(this); _context = context; }
public ControlsNavigationController(NavigationViewHandler handler, Type navigationBarType, Type toolbarType) : base(navigationBarType, toolbarType) { Delegate = new NavDelegate(this); _handler = handler; }
public ControlsNavigationController(NavigationViewHandler handler) : base() { Delegate = new NavDelegate(this); _handler = handler; }
public WebViewController(string startUri) { StartUri = startUri; WebViewDelegate = new NavDelegate(d => OnNavigating?.Invoke(d)); }