public OpenMenuGestureRecognizer(NSObject target, Selector action,FlyoutNavigationController parent) : base(target,action) { Parent = parent; this.ShouldReceiveTouch += (sender,touch)=> { if(touch.View is UISlider || touch.View is MPVolumeView) return false; return Parent.shouldReceiveTouch(sender,touch); }; }
public OpenMenuGestureRecognizer(NSObject target, Selector action, FlyoutNavigationController parent) : base(target, action) { Parent = parent; this.Direction = UISwipeGestureRecognizerDirection.Right; this.ShouldReceiveTouch += (sender, touch) => { if (touch.View is UISlider || touch.View is MPVolumeView) { return(false); } return(Parent.shouldReceiveTouch(sender, touch)); }; }
public OpenMenuGestureRecognizer(NSObject target, Selector action,FlyoutNavigationController parent) : base(target,action) { Parent = parent; this.ShouldReceiveTouch += (sender,touch)=> { //Ugly hack to ignore touches that are on a cell that is moving... bool isMovingCell = touch.View.ToString().IndexOf("UITableViewCellReorderControl",StringComparison.InvariantCultureIgnoreCase) > -1; if(touch.View is UISlider || touch.View is MPVolumeView || isMovingCell) return false; return Parent.shouldReceiveTouch(sender,touch); }; }
public OpenMenuGestureRecognizer(NSObject target, Selector action, FlyoutNavigationController parent) : base(target, action) { Parent = parent; this.ShouldReceiveTouch += (sender, touch) => { //Ugly hack to ignore touches that are on a cell that is moving... bool isMovingCell = touch.View.ToString().IndexOf("UITableViewCellReorderControl", StringComparison.InvariantCultureIgnoreCase) > -1; if (touch.View is UISlider || touch.View is MPVolumeView || isMovingCell) { return(false); } return(Parent.shouldReceiveTouch(sender, touch)); }; }