private void bt_xap_Click(object sender, RoutedEventArgs e)
        {
            GetRichContent("http://lzy/NDCEIRA", UriKind.Absolute);
        }
        //获取Rich Content
        void GetRichContent(string uri, UriKind uk)
        {
            MapHtml.Children.Clear();
            PageLoad chtml = new PageLoad();
            HtmlHost hh = chtml.FindName("htmlHost1"as HtmlHost; 
            hh.SourceUri = new Uri(uri, uk);
            MapHtml.Children.Add(chtml);
         }

 

使用htmlhost需要添加如下引用: 

 Divelements.SilverlightTools.dll

相关文章:

  • 2021-12-19
  • 2021-11-29
  • 2021-11-21
  • 2022-02-05
  • 2021-06-22
  • 2021-10-28
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2021-11-29
  • 2022-01-09
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案