xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Visual Basic
Visual C#
XAML Page
//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Input;
using System.IO;
using System.Net;
namespace FrameExample
{
public partial class Page1 : Page
{
private void BrowseAHomePage(object sender, RoutedEventArgs e)
{
if ((Boolean)VisualBasic.IsChecked)
myFrame.Navigate(new System.Uri("http://msdn.microsoft.com/vbasic/"));
else if ((Boolean)VisualCSharp.IsChecked)
myFrame.Navigate(new System.Uri("http://msdn.microsoft.com/vcsharp/"));
else if ((Boolean)AnotherPage.IsChecked)
myFrame.Navigate(new System.Uri("AnotherPage.xaml",UriKind.RelativeOrAbsolute));
}
}
}