DCSIMG
Silverlight - David Sackstein's Blog

Browse by Tags

All Tags » Silverlight (RSS)

MVVM : Injecting INotifyPropertyChanged Into an Existing Class by David Sackstein

Download the source code for this post here . Using MVVM in Silverlight and WPF I often encounter the following problem. I have a business class that needs to be exposed through the ViewModel. For this, it needs to implement INotifyPropertyChanged or expose Dependency properties. I take the side of those who prefer to keep WPF dependencies out of the ViewModel, so I usually take the path of writing a proxy that delegates properties to the business object and implementing INotifyPropertyChanged. I...

Silverlight Client With Sockets - Barebones Sample by David Sackstein

Dan Wahlin wrote an excellent article on Silverlight Client with Sockets - accompanied by a sample application. My objective in this post is simply to reduce Dan’s application to the bare minimum so that it is easier to reuse. You can download my reduced sample here . Changes These are the differences between my sample and Dan’s. There are now only three projects: The Silverlight control, the hosting Web site and the server. I reduced the Silverlight client to contain a single text box displaying...

Cross-Domain Policy Files for Flash and Silverlight with WCF by David Sackstein

Introduction In an earlier blog I described my motivation for upgrading an ASMX Web Service to WCF in a particular project . In that project the client was a Flash client hosted in a web page. The upgrade was simple and, as long as I ran the client from within Flex Builder , it had no problem consuming the new self-hosted WCF service instead of the ASMX. Allowing Cross-Domain Access However, once I deployed the package outside the Flex Builder, all calls to the service failed. The reason was that...
Powered by Community Server (Commercial Edition), by Telligent Systems