Wednesday, September 08, 2010    
Blog  
OpenLight Blog
Author: Michael Washington Created: 6/1/2009 7:48 PM
All Open Source - All The Time

image

With “Simplified MVVM” you can simply place your web service methods in your Model. The problem you run into, is how do you make an asynchronous web service call and fill a collection in your ViewModel? One method I have employed in the past is to pass an instance of the ViewModel to the Model, however, the problem this causes, is that you have now tightly coupled your ViewModel and your Model. It is also difficult to consume your Model from multiple ViewModels when you do it this way.

What you really want to do, is place your web...

Read More »

image

In my article Silverlight MVVM File Manager, I showed how a designer could use the MVVM pattern to create a UI from scratch, without writing a line of code. However, while the run-time file manager looked like this:

image...

Read More »

image

I am really excited about the future of web development using Silverlight. Recent enhancements to Microsoft Expression Blend 4 have enabled the use of the MVVM pattern in a straightforward manner using behaviors.

I have posted a sample project that demonstrates an implementation of the MVVM (Model-View-View Model) pattern to create a simple Silverlight File Manager. This pattern allows a programmer to create an application that has absolutely no UI. The programmer only creates a ViewModel and a Model. A designer with no programming ability at all, is then able to start with a blank page and completely create...

Read More »

image

You may find this post helpful if:

You are using MVVM  You are using a TreeView control You want the SelectedItem of the TreeView control to be passed to another object There are a lot of improvements in Expression Blend 4 that makes wiring this up easy. I poked around for a bit until I found the easiest method to do this that I could find.

 

image...

Read More »

At the last Microsoft MVP summit, I was eating lunch with Jeff Paries who I had collaborated with on previous Silverlight projects, but had not met in person until that week. I commented that I had not used the Silverlight gauge he created about a year ago because it was too big...

Read More »



You are probably thinking “Didn’t he already post a free DotNetNuke Silverlight file Uploader ?”. Well yeah I did, but this one is different.

This one allows a DotNetNuke portal administrator to place an instance of the module on a page and upload files. Each file has the ModuleID saved in its database record. The module will only show files for that module instance.



Each module instance has it’s own set of files, so you can set different visibility and permissions. It uses a Silverlight upload control so you can upload large files and select multiple files to be uploaded at one time.

You can download the module and the source at this link.

Read More »

If you have a page that contains a lot of information for users to enter, you can run into a problem where their authentication will “time out”. Usually this authentication is set to expire after 20 minutes of “inactivity” (the user has not submitted a request to the web server). The problem is that if they, for example, click the Save button after their authentication has expired, their content is not saved and they are logged out of the site instead.

image

To prevent this, you can install the Silverlight Keep Logged In module. When you place it on a page, there is no UI just a Title.

image...

Read More »



At my day job we have an advanced developer who was given a difficult project where he has to implement a dozen business rules. I’m talking “ask for a blessing before you go in” and “ask for forgiveness when you come out” complicated code.

I watched him work on the code, and he is methodical at writing down the rules and writing a test case to make sure he properly implemented it.  This usually involves creating a “test case” by setting up data in the database just right and then clicking buttons and links and checking the expected output. I have worked with him over a year, and I can assure you he has probably deleted more good code than I have ever written. Everything is properly structured and segmented and the overall design will bring tears to you eyes with the beauty of it’s implementation.

But management keeps asking for major changes.

So I see this developer...

Read More »

  
Copyright 2009 by OpenLightGroup.net   |  Privacy Statement  |  Terms Of Use