// Arrange Act Assert

Jag Reehal on Agile Development, ASP.NET MVC, Silverlight and all manner of good stuff


Using IDataErrorInfo for validation in MVVM with Silverlight and WPF

In this post we will be looking at how validation can be done by implementing the IDataErrorInfo interface for a calculator we have been building as part of the Silverlight refactoring series. The IDataErrorInfo interface gives you the ability to do validation without throwing exceptions. The full solution for this post can be downloaded here. [...]

Enabling buttons in Silverlight and WPF using MVVM and ValidatesOnExceptions

In a previous post we saw how exceptions could be used for Silverlight validation. While could validate the users input using exceptions, it wasn’t possible to disable the calculate button if the input values were invalid (because they were either blank or non-numeric). The code used in this post can be downloaded here. So how [...]

Validation in Silverlight and WPF using ValidatesOnExceptions

With the application as it is the user is able to enter non-numeric values and add them together. Clicking the calculate button to add two non-numeric values together will cause the application to do nothing and the user will have no idea why. Try it for yourself here. It would be common sense to validate [...]

Applying the Open Closed Principle in Silverlight and WPF using MEF

In this post I want to show how MEF can be used to apply the Open Closed Principle where a class is open for extension but closed for modification. In the Calculator application we have been building as part of the Silverlight refactoring series we could have used the code below to validate a users [...]

SOLID design principles using MEF in Silverlight and WPF

In this part of the Silverlight refactoring series we will be looking at two ways the Managed Extensibility Framework (MEF) can help you refactor Silverlight or WPF applications to follow SOLID design principles. The code used in this post can be downloaded here. Apart from saying through discovery and composition MEF gives you the ability [...]

« go backkeep looking »