开发者

What are some of the useful concepts to know about when building Silverlight apps?

The Silverlight(& WPF) space seems to have a whole new nomenclature around it so at times I'm having a hard time figuring our what is important and useful to research a bit more.

For example I 'know' about the MVVM pattern but I'm looking for things that are a bit smaller in scope, that is topics, ideas, programming constructs that might be used in implementing MVVM and would need to know before hand.

So basically I'm looking for some of the key topics and concepts that people have found useful or are important when creating a Silver开发者_如何学运维light apps. And maybe why it is useful or important and when\where it might be applied or used.

Thanks.


If you are a newcomer, don't bother with MVVM yet. It could easily overcomplicate everything. I recommend you to build your first one or two applications without it. (See this question.)

The concepts you should get yourself familiar with:

  • XAML syntax and the concept of code behind
  • Styles and Templates
  • What UIElement, FrameworkElement, Shape, Control, and other abstract classes are
  • Bindings (there are quite a few types of them)
  • How to create custom controls and styles for them (In SL, generic.xaml)

If you feel familiar with the above (and you feel comfortable with XAML, or someone in your team already does), read Silverlight and WPF best practices and then you can get started with MVVM.


I find the two most important things to learn to fully utilize WPF/Silverlight are first Data Binding and second the Templating model. Data Binding is key to many applications, but IMO Templating is where WPF/Silverlight really shines.


I might suggest you start by widening your scope to include WPF as well since in many cases the design patterns and coding patterns overlap somewhat. Obviously Silverlight is a slimmed down version of WPF but since many of the methods and styles of design are similar it may help to look at some WPF practices as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜