【问题标题】:Error When Source Artribute is Used in Frame Tag帧标签中使用源属性时出错
【发布时间】: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


    【解决方案1】:

    编译器告诉你,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。

    【讨论】:

      猜你喜欢
      • 2022-01-15
      • 1970-01-01
      • 1970-01-01
      • 2014-08-19
      • 2018-01-09
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多