So the first time you click
the back button, you move to the previous page in the embedded frame. The next time you
click the back button, you move to the previously visited parent page. Figure 9-6 shows the
sequence you follow. Notice that the back navigation button is enabled in the second step.
Figure 9-6. Navigation with an embedded page
Most of the time, this navigation model is fairly intuitive because you??™ll have one item in
the back list for each page you visit. However, there are some cases where the embedded
frame plays a less important role. For example, maybe it shows different views of the same
data or allows you to step through multiple pages of help content. In these cases, stepping
through all the pages in the embedded frame may seem awkward or time-consuming. Instead,
you may want to use the navigation controls to control the navigation of the parent frame only
so that when you click the back button, you move to the previous parent page right away.
To do this, you need to set the JournalOwnership property of the embedded frame to
OwnsJournal. This tells the frame to maintain its own distinct page history. By default, the
embedded frame will now acquire navigation buttons that allow you to move back and
forth through its content (see Figure 9-7). If this isn??™t what you want, you can use the
JournalOwnership property in conjunction with the NavigationUIVisibility property to hide
the navigation controls altogether, as shown here:
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478