Use Frame to Load another Xaml file : Frame « Windows Presentation Foundation « C# / C Sharp






Use Frame to Load another Xaml file

    

<Window x:Class="SimpleStyles.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="SimpleStyles"
  Background="#F8F8F8">
  <ScrollViewer>
    <WrapPanel>
      <HeaderedItemsControl Header="Frame">
        <StackPanel>
          <Frame Source="page1.xaml" Width="200" Height="200"/>
        </StackPanel>
      </HeaderedItemsControl>
   
    </WrapPanel>
  </ScrollViewer>
</Window>

   
    
    
    
  








Related examples in the same category

1.Frame Navigation Demo Window
2.Xaml frame on a TabXaml frame on a Tab
3.Use a Frame control to navigate to Web pages and a Extensible Application Markup Language (XAML) page.Use a Frame control to navigate to Web pages and a Extensible Application Markup Language (XAML) page.
4.Put a Frame tag onto a Window to host a page
5.Navigate Frame to a xaml document
6.Navigate Frame to a URLNavigate Frame to a URL