简体   繁体   English

xamarin xaml预览器自定义对象无法正常工作

[英]xamarin xaml previewer custom objects not working

[I have been waiting for this 6.1 release for a long time and I'm really excited to start using the xaml previewer. [我一直在等待这个6.1版本很长一段时间,我很高兴开始使用xaml预览器。 Unfortunately as soon as I tried to use a custom object it doesnt work. 不幸的是,一旦我尝试使用自定义对象,它就无法工作。 Been trying for a while and I know it must be possible since James Montemagno posted a video showing a custom object working. 尝试了一段时间,我知道必须有可能,因为James Montemagno发布了一个显示自定义对象工作的视频。 I've added a screenshot of a basic test. 我添加了基本测试的屏幕截图。 Any help would be greatly appreciated!!] 任何帮助将不胜感激!!]

[Project] http://i.stack.imgur.com/dpSJU.png [项目] http://i.stack.imgur.com/dpSJU.png

[Extended Label] http://i.stack.imgur.com/b94Vl.png [扩展标签] http://i.stack.imgur.com/b94Vl.png

Not sure, but it may be the extra space you have in the xmlns:local value. 不确定,但它可能是xmlns:local值中的额外空间。 You have: 你有:

xmlns:local="clr-namespace:xmlpreviewtest; assembly=xmlpreviewtest"

Note the space after the semicolon. 注意分号后面的空格。 Does it work if you remove that space? 如果删除该空间,它是否有效? I am not 100% certain that whitespace is allowed or not, but I have never seen white space in that value before. 我不是百分之百确定是否允许空格,但我之前从未见过该值的空格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM