Silverlight : MVVM Library and File Upload

Well its now a couple of days after XMAS here, so it’s back to work for us. Now for those that know me, I normally write about WPF and related technologies. I like WPF, but it has been a while since I played with its smaller brother Silverlight. I think the last time I played with Silverlight was way back in 2007, where I wrote this article (good in its day I suppose):

SLFun.aspx

So I thought it was about time that I had a look at why Silverlight was getting so much Microsoft press and community attention lately, the futures Silverlight and all that. I say the future is doing cool work, and that is whatever technology that happens to be. But whatever.

This article was started off as a small part of a larger SL4 application that I am making to understand and play with RIA Services, but it kinda of morphed a bit, and has now taken on a life all of its own. Well actually it is kind of 2 sentient beings now :

Sentient Being 1 : A mini Silverlight class library that aids in MVVM development

The mini Silverlight library that came out of this investigation boasts the following features :

  • Commanding
  • Messaging
  • Services
  • Threading Helpers

Sentient Being 2 : What I was supposed to be doing all along, which was playing with the new SL4 bits. To do this I have created a SL4 uploader that can upload a file to a folder on the webserver, and will optionally show a SL3/4 ChildWindow of the uploaded file if it is an image file.

This is what it looks like after it has uploaded and image file

I hope that this demo application and the Silverlight MVVM library contained with it are useful to many of you.

Here is a link to the article:

http://www.codeproject.com/KB/silverlight/SL4FileUploadAnd_SL4_MVVM.aspx

Enjoy

Advertisements

Cinch Code Generated Is Out

I am very pleased to announce that I have now released a code generator for my Cinch MVVM framework:

Here is a screen shot of the finished article

opened

 

The cinch code generator article is available at www.codeproject.com using the link : http://www.codeproject.com/KB/WPF/CinchCodeGen.aspx

The source code is available as part of the main Cinch download, which I realise is a big download now, but I wanted to keep it all together so it was easy to keep code generator Cinch.dll reference synced.

Anyway the download link is over at the Cinch Codeplex site : http://cinch.codeplex.com/

Enjoy, I am off for a holiday now, so I will not be answering any questions for quite some time, sorry about that.

Cinch (My MVVM framework) Part 4 is out

I just published part III of my MVVM framework series over at http://www.codeproject.com .

Here is the link

http://www.codeproject.com/KB/WPF/CinchIV.aspx

 

This time I talk about

Developing Models Using Cinch
Developing ViewModels Using Cinch

    * Choosing a ViewModel Base Class
    * ViewModelBase Class
    * How To Use The Exposed Services
          o EventLogger service
          o MessageBox service
          o Open File service
          o Save File service
          o Popup window service
    * Background Tasks
    * Mode Support

 

Enjoy

Cinch (My MVVM framework) Part 3 is out

I just published part III of my MVVM framework series over at http://www.codeproject.com .

Here is the link

http://www.codeproject.com/KB/WPF/CinchIII.aspx

 

This time I talk about

* DI/IOC using Unity IOC container
* Exposed Services
      o EventLogger service
      o MessageBox service
      o Open File service
      o Save File service
      o Popup window service
* Threading Helpers
      o Dispatcher extension methods
      o App.DoEvents
      o Background Tasks
      o ObservableCollection
* Doing MenuItems the MVVM way
* Closeable ViewModels

 

 

Enjoy

My MVVM Framework : AKA Cinch

I have just put up the 1st part in my MVVM series of articles which talks about a MVVM framework I am calling Cinch. I hope this will answer some of people short coming when working with MVVM and WPF. I have decided to dedicate an entire page here on my blog which will have all the links you should need to gain quick access to the entire series.

http://www.codeproject.com/KB/WPF/Cinch.aspx

http://www.codeproject.com/KB/WPF/CinchII.aspx

http://www.codeproject.com/KB/WPF/CinchIII.aspx

http://www.codeproject.com/KB/WPF/CinchIV.aspx