WPF 4.0

Another great presentation from Ian Griffiths on WPF 4.0 and supporting features in VS2010. VS2010 has improved data-binding, better intellisense and an improved designer. The new features include a User Interface for styles and resources, a user interface for editing data-binding and drag and drop support for the data sources window.

It is also possible to get ViewModel data-binding support from within VS2010 using the xaml namespace in the following way:

d:DataContext=”{d:DesignInstance vm:myViewModel}”

where d is the xamlnamespace and vm is the namespace with your view model in. This will then allow the data-binding to be wired up via the new user interface elements. This is pretty cool and should decrease the chances of making mistakes when setting up the bindings manually.

Graphics

Text rendering now provides much more control for the developer and the trade-offs between clarity and fidelity can be carefully selected in the code.

More things are offloaded to the GPU – although no details are available on what??

Now includes Visual State Manager (from Silverlight). WPF strategy of using triggers, although very flexible considered less designer-friendly.

WPF XAML parsing has been improved and the internals are now more visible. Also, there is now one parser that is used by the various clients; blend, visual studio, etc – this was not the case previously!