【发布时间】:2013-04-22 13:26:16
【问题描述】:
我正在尝试在 Windows 8 XAML 中使用以下帧标记打开网页。
<Frame
Source="http://medievaltvg.freeoda.com/"
/>
我从 Visual Studio 收到以下错误:
Unknown member 'Source' on element 'Frame.'
【问题讨论】:
标签: xaml windows-8 visual-studio-2012
我正在尝试在 Windows 8 XAML 中使用以下帧标记打开网页。
<Frame
Source="http://medievaltvg.freeoda.com/"
/>
我从 Visual Studio 收到以下错误:
Unknown member 'Source' on element 'Frame.'
【问题讨论】:
标签: xaml windows-8 visual-studio-2012
编译器告诉你,Frame 控件上没有成员 Source。
这不是 Windows.UI.Xaml.Frame 的用途。
来自MSDN。
You use the Frame control to support navigation to Page controls. You create
as many different pages as needed to present the content in your application
and then navigate to those pages from the frame. To navigate from the frame,
you call the Navigate method and pass in the type of the page to navigate to.
You can also pass in a parameter object to initialize the page to a particular state.
您正在寻找的是WebView-Control。
【讨论】: