protected override bool OnSrcEvent(Gst.Event evt) { NavigationEventType t = NavigationEvent.EventGetType(evt); if (t == NavigationEventType.MouseButtonPress) { double x, y; int btn; if (NavigationEvent.ParseMouseButtonEvent(evt, out btn, out x, out y)) { if (btn == 1) { lastX = (int)x; lastY = (int)y; } } } else if (t == NavigationEventType.MouseButtonRelease) { lastX = lastY = -1; } return(base.OnSrcEvent(evt)); }
public void OnNavigatedTo(NavigationEventType type) { if (type == NavigationEventType.Popped) { this.Start(); } }
public async void OnNavigatedTo(NavigationEventType type) { if (type == NavigationEventType.Popped) { this.BookmarkedArticles = (await this.bookmarkService.GetBookmarkedArticlesAsync()).ToList(); } }
private void FireEvent(NavigationEventType type, int id, bool causedByFocusing) { var moveInstantly = type == NavigationEventType.Reset || appMode.NavigationMode == AppNavigationMode.Vr || type == NavigationEventType.MoveToSpecific && sg.Aspects[id].InstantTransition; eventRoutingService.FireEvent <INavigationEvent>(new NavigationEvent(type, moveInstantly, causedByFocusing)); }
private void NavigationPageOnNavigated(object sender, NavigationEventArgs navigationEventArgs, NavigationEventType type) { this.masterDetailPage.IsPresented = false; var currentPage = ((NavigationPage) sender).CurrentPage; ((MenuViewModel)this.menuPage.BindingContext).OnNavigated(currentPage); (currentPage.BindingContext as INavigatedToAware)?.OnNavigatedTo(type); }
public static void TrackNavigationEvent(string screenName, NavigationEventType direction) { TrackNavigationEventInternal(screenName, (int)direction); }
public NavigationEvent(NavigationEventType type, bool moveInstantly, bool causedByFocusing) { Type = type; MoveInstantly = moveInstantly; CausedByFocusing = causedByFocusing; }