Prev | Current Page 481 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

Just look for one of the
Navigate() method overloads that take an extra object parameter. This object is made available in the
Navigated, NavigationStopped, and LoadCompleted events through the NavigationEventArgs.ExtraData
property. For example, you could use this property to keep track of the time a navigation request was made.
CHAPTER 9 n PAGES AND NAVIGATION 266
Table 9-2. Events of the NavigationService Class
Name Description
Navigating Navigation is just about to start. You can cancel this event to prevent
the navigation from taking place.
Navigated Navigation has started, but the target page has not yet been retrieved.
NavigationProgress Navigation is underway, and a chunk of page data has been
downloaded. This event is raised periodically to provide information
about the progress of navigation. It provides the amount of information
that??™s been downloaded (NavigationProgressEventArgs.BytesRead) and
the total amount of information that??™s required (NavigationProgress-
EventArgs.MaxBytes). This event fires every time 1KB of data is
retrieved.
LoadCompleted The page has been parsed. However, the Initialized and Loaded events
have not yet been fired.
FragmentNavigation The page is about to be scrolled to the target element. This event fires
only if you use a URI with fragment information.


Pages:
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493