如何在XAML中对HTML标签进行整数化示例? [英] How to integerate HTML tag in XAML any Example?
问题描述
我在以下代码段中在WPF中使用自定义HTML控件
I use custom HTML control in WPF in the following code snippet
XAML:htmCtrl.UrlSource = www.google.com ;它有效
XAML : htmCtrl.UrlSource = www.google.com; it works
XAML:htmCtrl.HtmlSource =< html> ;;< body> ;; text</body> ;;</html> ;;"它行不通吗?
XAML with HTML : htmCtrl.HtmlSource = "<html>;<body>;text</body>;</html>;" it does not work ?
这是正确的吗?
请提供一个将XAML与HTML一起使用的示例吗?
Please can you give an example for to use HTML with XAML ?
推荐答案
大卫,我从未在XAML中使用过HTML,但是我认为您必须在XAML中转义任何特殊字符(请参见 映射表),即替换<"带有& lt"和>"
Hi David,I've never used HTML within XAML, but I would assume that you would have to escape any special characters in your XAML (see the mappings table) , i.e. replace "<" with "<" and ">" with ">".
这篇关于如何在XAML中对HTML标签进行整数化示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!