积极答复者
Silverlight和XPS

问题
答案
-
aptbird 写: 没有新办法了吗?
字体文件要选择content Copy always
Code SnippettranslatedXaml = Regex.Replace(translatedXaml, "http://[^/http://[^/">http://[^/</A< A>>]+", ".");
translatedXaml = translatedXaml.Replace("./xps/2005/06", "http://schemas.microsoft.com/winfx/2006/xaml/presentation").Replace("\t", "").Replace("\n", "");
Canvas xamlCanvas = XamlReader.Load(translatedXaml) as Canvas;在标红的这行前加上这两句,就可以了,他的程序我刚刚调通,需要的话我给你发到网上
首先SL2 RTW不能xaml load http://schemas.microsoft.com/xps/2005/06 声明的控件了,要改为 http://schemas.microsoft.com/winfx/2006/xaml/presentation
其次初步断定是SL2 RTW不能以 http uri方式载入 Glyphs字体,正在继续试验
全部回复
-
几天搜索到了这个
看来是没有什么太好的办法,不知道以后的Silverlight能否直接支持XPS.
-
我下他源码看,好像少了一个/Documents/1/FixedDocument.fdoc这个文件
-
不好意思,我在公司基本上不使用QQ, 我的MSN是zhaoyang0618@msn.com, QQ的话只能是晚上了!
-
-
aptbird 写: 没有新办法了吗?
字体文件要选择content Copy always
Code SnippettranslatedXaml = Regex.Replace(translatedXaml, "http://[^/http://[^/">http://[^/</A< A>>]+", ".");
translatedXaml = translatedXaml.Replace("./xps/2005/06", "http://schemas.microsoft.com/winfx/2006/xaml/presentation").Replace("\t", "").Replace("\n", "");
Canvas xamlCanvas = XamlReader.Load(translatedXaml) as Canvas;在标红的这行前加上这两句,就可以了,他的程序我刚刚调通,需要的话我给你发到网上
首先SL2 RTW不能xaml load http://schemas.microsoft.com/xps/2005/06 声明的控件了,要改为 http://schemas.microsoft.com/winfx/2006/xaml/presentation
其次初步断定是SL2 RTW不能以 http uri方式载入 Glyphs字体,正在继续试验