Navigation Window


Content navigation in WPF can be achieved by using NavigationWindow,  NavigationWindow derives from Window and extends it with the ability to navigate to and display content. Content can be any type of .NET Framework 3.0 object and HTML files. NavigationWindow is one of two navigators in WPF, the other being Frame. Essentially, navigator is a class supports navigation and navigation history. Visually, XBAPs use Internet Explorer 7 as a navigator, to provide an integrated user experience. However, XBAPs actually use NavigationWindow as the navigator; the MainWindow property of an XBAP running in Internet Explorer 7 will return a reference to the NavigationWindow, and the navigation history that is managed by the NavigationWindow is integrated with the navigation history that is managed by Internet Explorer 7.

Here is a sample walkthrough on how to use Navigation Window

Navigating to a UI Page

-------------------------

<NavigationWindow

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Title="Window1" Height="300" Width="300" Source="pack://application:,,,/WindowNavigation;Component/Page1.xaml" >

</NavigationWindow>

Rendring HTML in Navigation Window

----------------------------------

<NavigationWindow

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Title="Window1" Height="300" Width="300" Source="http://microsoft.com" >

</NavigationWindow>


Skip to main content