将xaml转换为html [英] Convert xaml into html

查看:201
本文介绍了将xaml转换为html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有自动方式将xaml(WPF)程序代码转换为html?

我试图搜索但我只发现如何将html更改为wpf xaml。是否有某种方式改变相反的方式?

Is there an automatic way to convert an xaml (WPF) program code into html?
I tried to search but i only found how to change html into wpf xaml. is there somehow to change the other way round?

推荐答案

你在XAML中表达的大部分内容都不能用HTML表示,所以任何这样的转换都会转到丢失了很多信息。 (作为XAML设计重要组成部分的整个模板,数据绑定和样式构思都没有等价物,图形也不能用普通的HTML来完成。)所以你将无法生成一个工作副本程序(如果你想要的话,使用Silverlight,它非常接近WPF)。
Most of what you can express in XAML can't be expressed in HTML, so any such conversion is going to lose a lot of information. (The whole templating, data binding and style ideas that are an important part of a XAML design have no equivalent, and graphics can't be done in ordinary HTML either.) So you won't be able to produce a working copy of the program (if you want that, use Silverlight, which is quite close to WPF).


这个 XAML / HTML转换器 [ ^ ]可能会帮助你入门。

还有一个文章< MSDN上的[ ^ ]但是它看起来未完成。
This XAML/HTML converter[^] might help you get started.
There is also an article[^] on MSDN but it looks unfinished.


这篇关于将xaml转换为html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆