Shawn Wildermuth

Stories

Tagged with MVVM


From my Web Dev for XAML Devs Talk

SpaghettiBabyI had the opportunity tonight to do a talk for the Atlanta XAML Meetup on Web Development for XAML Developers. I had fun explaining how XAML developers can use their existing skills with markup, design, data binding and data access on web page development. You can see the slides from the talk here:

If you’re interested in the code from the talk, you can get it here:

Read...


Using MVVM on the Web with KnockoutJS

As most of you know, I have been in the Silverlight space for quite a while. (And to be clear to the chicken-little amongst you, no I am not leaving the Silverlight community.) I’ve been building a web application for consumers so that HTML + JavaScript represents the right solution to building a project like we’re building (more on what I am building in the near future). 

One of the things I wanted to be able to do is to build longer-lived pages where it made sense without having to resort to post-backs or hacked together JavaScript. In fact, what I really wanted was a client-side ViewModel (e.g. MVVM) for my web page. After looking at several of the existing frameworks for the job, I settled on KnockoutJS as a great solution. The currently released version (1.21) is a good solution, but the developers of the framework have released a Beta (1.3Beta) version that greatly simplifies what I needed. If you want to follow along, make sure you download that version here.

To get started, I simply have a database of Xbox games (yeah, I know). I am using ASP.NET MVC3 for the web part. I’ve got a single page that contains a drop down of genres and a REST-call from the MVC Controller that returns the games for a particular genre. You can look at the code if you’re interest in that part of the story. I am going to focus on the client-side JavaScript.

Read...


The New Silverlight Tour - Now With MVVM and Unit Testing

Url: https://agilitrain.com/Workshop/Outline/Silverl...

The New Silverlight Tour

New and Improved? Its not a laundry detergent, but we've just finished our biggest overhaul to the Silverlight Tour in three years.  We've focused the new class on the Business Application developer.  To that end we've added new sectiosn on Unit Testing and Model-View-ViewModel (MVVM) development. We've also reviewed the course and found the sections that were helpful and removed some of the ones that were not as useful to business application developers.

Read...


Portland Silverlight Users Group

Url: http://wilderminds.blob.core.windows.net/downloads/PortlandGameEdi...

Silverlight Logo

I just got back from the west coast and while there I had the opportunity to speak at the Portland Silverlight Users Group.  It was a Q&A session and I had a lot of fun answering those questions. Other than questions I couldn't share information about, the most common questions were about hwo to implement MVVM.  I decided to do my 45 minute walkthrough of MVVM and built a simple editor using MVVM.  For all of you at the meeting that wanted the source, you can find it here:

Read...


Speaking at MIX10!

Url: http://live.visitmix.com

MIX10

I am happy to announce that one of my entries in the  MIX 10's Open Call for content was selected by the community to be delivered at the event. The entry that was choosen is:

Read...


Architecting SL4 Apps with RIA Services, MEF and MVVM - Part 4 (of 3)

Url: http://wilderminds.blob.core.windows.net/downloads/riaxboxgames.zip

Silverlight Tour

Welcome the part 4 of my three-part series on architecting with RIA Services. In the last part of the series, I thought I was done with the example and some of my readers challenged me to help them understand how to handle Add/Delete scenarios. Since I was at it, I figured I should show paging and IsDirty scenarios as well, I decided to make a part four. 

Read...


Architecting SL4 Applications with RIA Services, MEF and MVVM - Part 3

Url: http://wilderminds.blob.core.windows.net/downloads/riaxboxgames.zip

Architecture

UPDATE: There will be a fourth part that discusses the add/remove facility through RIA Services. Look for it soon at a blog near you.

Read...


Architecting Silverlight 4 with RIA Services, MEF and MVVM - Part 1

Url: http://wilderminds.blob.core.windows.net/downloads/riaxboxgames.zip

Architecture

Recently I blogged about Brad Abrams' PDC RIA Services Talk and complained about the data source functionality. While the drag-n-drop ability in RIA Services is interesting, I believe that it may be a bad approach for all but the smallest of projects (or one-off projects). In that comments of that article, I promised to show you how I would architect a Silverlight solution with RIA Services. 

Read...


Back from DevLink 2009!

DevLink

I had a great time at DevLink this year. Met up with lots of great heartland folks and had some really interesting conversations (about Ruby and F# specifically). If you missed DevLink this year, you missed a great conference. John Keller and company put on a great show (for only $100 conference fee). The .NET Rocks panel at the end of the three days capped off a great few days in Nashville.

While I was charming my way through Nashville, I got around to actually giving a couple of talks at the event.  The code and slides for my MVVM and Blend talks is now available on my Talks page here:

Read...


Yes, I Am Still Talking About Prism - On The Connected Show!

Url: http://www.connectedshow.com/default.aspx?Episo...

The Connected Show

I had a chance to sit down (metaphorically) with Dmitry Lyalin  and Peter Laudati and talk about Silvelright, MVVM and Prism 2.0. Let me know if you agree, disagree or think that I am a little obsessed with IoC containers.

Read...


DevTeach Silverlight+MVVM=Easy Demo

Url: http://wilderminds.blob.core.windows.net/downloads/DevTeachGameSto...

Silverlight Logo

Fun first day here at DevTeach. I a talk showing creating a MVVM application from scratch (using ADO.NET Data Services 1.5 CTP). Kathleen Dollard had introduced the concept earlier that day, but we teach it a lot differently so it was fun to show off building a full MVVM application in the span of 75 minutes. 

Read...


Which came first, the View or the Model?

Architecture

As I wrote and subsequently taught the Silverlight Tour workshop, I've had a number of discussions with students, clients and the community-at-large about how to architect Silverlight applications.

The momentum behind the Model-View-ViewModel (MVVM) design pattern makes a lot of sense to me, especially with declarative views (as seen in Silverlight and WPF). Most of my thinking around this was covered in my MSDN article about it:

Read...


Erik Mork's Silver Bay Labs Walkthrough of My MVVM Example

Url: http://development-guides.silverbaylabs.org/Vid...

Silver Bay Labs

Erik Mork (of Sparkling Client Podcast and the Silverlight Tour) has recently done a ten-minute podcast walking through the MVVM example I created for the MSDN article on the subject. He does a great job of distilling the basics and if you are still confused by MVVM, go take a look at the video!

Read...