我使用 WPF 进行了大量开发,现在转向 silverlight。
在 WPF 中存在以下内容,我想看看它们在使用 Silverlight 时是否仍然明显或其已更改?或者其他什么是首选?
-
WPF 使用与设备无关的像素,因此您可以在不扭曲的情况下放大和缩小,我认为 silverlight 也使用这些测量值?还是像素?
-
WPF 建议不要包含任何位图艺术,而应使用 XAML 艺术,否则图像在放大/缩小时会变形。这适用于 silverlight 吗?
-
对于工具栏图片使用图像的建议是什么 - 我们可以使用位图/图标或其他特殊方式?
在进行更改之前我可能还需要了解什么?
提前致谢
I did quite a bit of developing with WPF and now moving over to silverlight.
In WPF the following existed and i wanted to see if they are still apparent using Silverlight or its changed? or something else is preferred?
-
WPF uses device independent pixels so you can scale up and down without distorting, i presume silverlight uses these measurements also? or is it pixels?
-
WPF recommended not including any Bitmap art but using XAML art otherwise images will become distorted when scaled up / down. Does this apply to silverlight?
-
What is the recommendations for using images for toolbar pictures - we can use bitmaps / icons or some other special way?
Anything else i might need to know before making the change?
Thanks in advance
发布评论
评论(1)
1) “所有内容确实与 WPF 一样与分辨率无关”
http://forums. silverlight.net/forums/p/1695/4209.aspx
但不是:)
Silverlight 设备独立坐标
2) 此处相同.. XAML 更好..
3) 仅支持两种“本机”图像格式 PNG、JPEG
4) 忘记“触发器”.. Silverligth 使用“视觉状态”
http://www.interact-sw.co.uk/iangblog/ 2008/06/10/visual-state
5)没有bildin“菜单”,“工具栏”控件,但您可以轻松找到第3方控件...谷歌会帮助您
6)Silverlight比WPF慢...
1) "all content is indeed resolution independent like WPF"
http://forums.silverlight.net/forums/p/1695/4209.aspx
but not :)
Silverlight device independent coordinates
2) Same here.. XAML is better..
3) There is only two 'native' images format supported PNG, JPEG
4) Forget about 'triggers'.. Silverligth use 'visual states'
http://www.interact-sw.co.uk/iangblog/2008/06/10/visual-state
5) There is no bildin 'Menu', 'Toolbar' controls, but you could easily find 3rd party controls... google will help you
6) Silverlight is slower than WPF...