Frame Navigation in a Window Sample

This sample demonstrates how to host a Frame within a Window. Building the Sample Install the Windows Software Development Kit (SDK) and open its build environment command window.

 
 
 
 
 
(0)
8,667 times
Add to favorites
2/1/2011
E-mail Twitter del.icio.us Digg Facebook
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SDKViewerWindow"
    Title="SDK Viewer"
    Width="430" 
    Height="400"
    >
  <StackPanel Margin="10,10,10,10">

    <!-- Home hyperlink -->
    <TextBlock>
      <Hyperlink Name="homeHyperlink" Click="homeHyperlink_Click">Home</Hyperlink>
    </TextBlock>

    <!-- Content -->
    <Frame Name="sdkFrame" Background="WhiteSmoke" Source="SDKFramePage.xaml" NavigationUIVisibility="Visible" />

  </StackPanel>
</Window>