简体   繁体   English

WPF为Silverlight / Windows Phone 7设计自定义UI组件

[英]WPF designing custom UI component for Silverlight/Windows Phone 7

I am looking into designing completely custom UI component mainly for Windows Phone 7 applications and possible later for web based applications (Silverlight). 我正在研究设计完全自定义UI组件主要用于Windows Phone 7应用程序,以及稍后可能用于基于Web的应用程序(Silverlight)。 It would be something like speedometer with some effects ie when speed changes arrow slowly moves too. 它会像速度计那样具有一些效果,即速度变化时箭头也会慢慢移动。

How do these completely custom UI components are designed? 这些完全自定义的UI组件是如何设计的? Visual Studio or maybe even Blend is used for that? Visual Studio或甚至Blend用于此?

Are there are good tutorials around the web which would guide me in creating such component? 网上是否有很好的教程可以指导我创建这样的组件?

I imagine it completely written with WPF/XAML, that it would be vectorial and could scale on my needs. 我想它完全用WPF / XAML编写,它将是矢量型的,可以根据我的需要进行扩展。

Thanks for the help, -david 谢谢你的帮助,-david

You can create reusable UserControls in Silverlight for Windows Phone. 您可以在Silverlight for Windows Phone中创建可重用的UserControl。 Here's a walkthrough. 这是一个演练。

Snowfall (User Control Sample) : Windows Phone 7 Tutorials 降雪(用户控制示例):Windows Phone 7教程

Do you know at least basics of WPF? 你至少知道WPF的基础知识吗? Well, if you did, you would probably know how to write UserControls :) 好吧,如果你这样做,你可能会知道如何编写UserControls :)

So my advice: learn at least basics of WPF and XAML. 所以我的建议是:至少学习WPF和XAML的基础知识。 Come back for advice, if you get stuck. 如果你遇到困难,请回来寻求建议。

And yes, you use VS and/or Blend. 是的,你使用VS和/或Blend。 (Blend especially for more graphically intensive/advanced controls). (特别针对更多图形密集型/高级控件进行混合)。

There are many Introduction to WPF tutorials around there. 那里有很多关于WPF教程的介绍。 But be prepared to unlearn what you know about UI design/creation. 但要准备好忘掉你对UI设计/创作的了解。 But your effort will be generously rewarded, WPF is quite hard to get into, but awesome once you get hang of it. 但是你的努力将得到慷慨的回报,WPF很难进入,但是一旦你掌握了它就很棒。

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

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