Tag | MVVM Posts

Update: MVVM Light Toolkit V2 has been released. Please use the new installer to upgrade your installation. Ever since I released V1.1 of the MVVM Light Toolkit, I have received wonderful and constructive feedback from users. Most of it is flowing into V2, which is almost ready (I am still fighting a little with MSI installers and project/item templates for one feature I am particularly happy about, which is making project templates and item templates available in Expression Blend. That’s right, ...
Like most of us have found out the hard way, Silverlight 3 and Windows Presentation Foundation 3.5 are two quite similar beasts, but not totally the same. Silverlight is often presented as a subset of WPF (in fact, some features are available in Silverlight but not yet in WPF; generally speaking, though, it is true that Silverlight has less features than its big sister WPF) (yeah WPF is a girl, don’t tell me you didn’t know ;)) Read the rest of this entry » ...
Few days ago I wrote a small behavior, which I think, can be used in many applications, so I decided to share it with you :) What are behaviors in Silverlight I won't write in this post, because there are many other places where you can find nice tutorial about this. I personally recommend this one: http://www.silverlightshow.... What I did What I did is a "TargetedTriggerAction" behavior, which simulate button click on targeted button control, when ...
I am visiting beautiful city of Nashvillie, TN, US and involoved in rather interesting project involving WCF, silverlight and SQL server 2008. Also being used are Search server (FAST) / Lucene .Net Omniture (for Web analytics) Integration with Community server, Twitter, Facebook Velocity – Distributed caching. MemCache – Web server Cache I am also planning to use Nikhil’s MVVM Silverlight Fx at silverlight end or MEF LINQ / Enity framework - for ORM. That remind me of scenario where i had to register ...
I was having an discussion with my wife on things to come in computer software and silverlight. below is a brief snippet: My wife holds an computer engineering degree and is passionate about new innovations. She is a prolific programmer though she ONLY codes when she feels like(or finds a problem worth her attention) and thus is NOT a regular coder like mortals like me who are ... well, just coders, who codes for money:D Wife: What is this buzz around Silverlight? Subodh: Because we need smarter ...
MVVM == Model View ViewModel Pattern is a MUST follow pattern in Silverlight (WPF). here is why… Problems it solves: •Tight coupling of layers (ex a query in the UI) •Unit testing is hard/impossible, only functional testing is possible •Assures codes still works correct after a change •ViewModel •Provides View with data model and behavior •View will bind to ViewModel •Wraps data access entirely In light of new technologies like RIA services (which provides CRUD) operations out of the box it is imperative ...
Well, here we are again. Last time, we talked about project structure and came up with the one we’ll use for this series. Next we’ll talk tools. We’ll talk tools like Tim Taylor talks tools: with lots of grunts for my favorites and only a little explanation about what the tools do.) This is mostly because there is LOTS of material on the interwebs about all of these tools. I tend to favor the tools that are the most widely used for two main reasons: they have been battle tested by the largest crowd ...
Alright dear readers (both of you), I told you last time that I would answer that age-old question, “How many projects should I have in my solution?” The answer is: only as many as you need. I know, I know, but it’s not a copout, really it’s not. I’ve really found that is it easier to start with fewer projects and break them out when you need to, than trying to combine projects later on. Does that mean that one project with everything in it is right? Yes. If that is all you need. I realize it sounds ...
In this Issue: Matthias Shapiro, Nigel Sampson, Shawn Wildermuth, and Brad Abrams. Lots of Shoutouts Today: Jesse Liberty expounds on CodeRush and the advantages it gives him while coding: Mini-Review of Code Rush Jesse also posted this one: Carousel Video Posted – Parts 1 and 2 ... so go to Silverlight.net and check them out. I skipped mentioning this yesterday, but Ben Waggoner not only is blogging about it, but he's involved in it: Tesco and Silverlight delivering the full disc experience without ...

To help you get started with the MVVM Light Toolkit V1.1.1, I published two new articles:

Read the rest of this entry »

In this Issue: Michael Washington, Damian Schenkelman, Allan Muller, Katrien De Graeve, Rob Eisenburg, András Velvárt, Andrew Duthie, Terence Tsang, Imran Shaik, and John Papa. Shoutout: Walt Ritscher is back to his "Reflection on Design" series with Reflecting on Design #17– Kinetic Animation of Blink 182 ... he has a link to all of them or you can find them at SilverlightCream.com using the search page. From SilverlightCream.com: Silverlight Bridge - A Silverlight File Manager Wow ... check out ...
Download Sample Code MVVM Playground Have I mentioned lately that I love the MVVM presentation pattern?? If I haven’t please allow me to do so now. It makes unit testing much much easier, the clean separation between logic and presentation makes me feel all warm on the inside, and (Blendability) those designers in the black turtle necks can run off and build an awesome UI in XAML while us devs write our code in peace :) Ahhh, so ok there are some issues that we are going to run into in the MVVM space. ...
In this Issue: Katrien De Graeve, Laurent Duveau, Colin Blair, Christian Schormann, Damon Payne, Brad Abrams, Davide Zordan, Jesse Liberty, and Victor Gaudioso. Shoutouts: Jonathan van de Veen responds to Tim Heuer's query with his post Adventures while building a Silverlight Enterprise application part #21 Koen Zwikstra has announced Document Toolkit 1.1 RTW... and there's an fully-funtional evaluation available. Laurent Bugnion has announced a new release of MVVM Light Toolkit V1.1.1: What’s new? ...

The new version of the MVVM Light Toolkit was just posted. So what is new? Well, to be honest not much.

Read the rest of this entry »

I just published a new version of the MVVM Light Toolkit.

Read the rest of this entry »

We already talked often about providing design time data to your designers in Windows Presentation Foundation and in Silverlight, thus enabling them to work visually in design editors such as Expression Blend or the Visual Studio designer (codenamed Cider).

Read the rest of this entry »

In this Issue: Rick Barraza, Colin Blair, Joe Stagner, Chris Klug, Andrea Boschin, Laurent Bugnion, and Al Pascual. Shoutout: Blendables announced a New Desklighter Build in Labs , but I can't seem to get the link to open for me... give it a shot and see how it looks :) From SilverlightCream.com: Advanced Render Techniques with WriteableBitmaps If you ever wanted to wipe that smirk off the Mona Lisa, now's your chance... I thoughtRick Barraza's last post was fun to play with but wow is this cool... ...
*Moved to: Wpf Scale Transform BehaviourAlthough this post is called Scale Transform Behaviour you could use any transform / animation in its place. The purpose is to have a slider control in a menu be able to alter the scale of any number of controls within MVVM views. Read more...Follow my new blog on http://blog.hinshelwood.com ...
In this Issue: Kirupa, Brian Genisio, Nikhil Kothari, and Al Pascual From SilverlightCream.com: Using Behaviors - Page 1 Kirupa has a great 3 page tutorial up on Behaviors... great example too!Adventures in MVVM – Binding Commands to ANY Event Brian Genisio is still dealing with boilerplate pain of wiring up commands to events in MVVM, and this time comes up with a solution that requires a few caveats, but beyond that it's golden... and he provides code :)BouncingPlane Behavior for Silverlight Nikhil ...
More Adventures in MVVM One of the biggest points of friction for me when implementing the MVVM pattern happens when I need to bind commands to events. When using Prism, I get the Button.Click command binding out of the box, but every other event needs to be wired up individually. Doing this requires a LOT of boilerplate code that is very easy to get wrong. In my last post, I published some code to alleviate that pain. Still, it requires you to write a new behavior and attachment for every event ...
While western Virginia has more mountains, northern Virginia has more technology events. They might have more events, but when we have them, we have the best. Don't believe it? Sign up and attend a Developer or IT Pro session on September 10th. Better register now or you will only get to attend via the tweets from those of us that registered early :) Microsoft Roadshow visits Roanoke Thursday, September 10th Location: Roanoke Higher Education Center Registration is required Our very own, Microsoft ...
*Moved to: Wpf Ninject Dojo: The Data ProviderYou have probably heard me go on about Unity a couple of times: My.Unity.Resolve(Of Ninja) Unity and ASP.NET Creating a Data Access layer using Unity I have been using what is now unity since the good old days (sooo not true, WPF is the Windows Forms killer, and good riddance) of WindowsForms and CAB (Client Application Block), but now there is a lightweight alternative: Ninject. Read more...Follow my new blog on http://blog.hinshelwood.com ...
In this Issue: Pencho Popadiyn, Andy Beaulieu, Vikram Pendse, Erik Mork, Gavin Wignall, John Bruin, Brian Genisio, Dan Wahlin, Tomasz Janczuk, and Matthias Shapiro. Shoutouts: Shawn Wildermuth posted PHP toolkit for ADO.NET Data Services...And My XBox Demo... how cool is that? Tim Heuer posted that he uploaded More Silverlight application themes and fixes to the Expression Gallery... you HAVE been watching that, right? From SilverlightCream.com: Accessing the full range of colors in procedural code ...
More Adventures in MVVM There are several examples on the web that describe the “Attached Behavior” pattern in Silverlight and WPF. This pattern works really well for binding commands in the ViewModel to controls in the View. The problem with this is that for every behavior, there is a LOT of boilerplate code that goes along with it. Because the DepencencyProperties need to be static, they cannot be easily abstracted into a common class. If you want to attach a MouseEnterBehavior to a control, you ...
*Moved to: Wpf Drag & Drop behaviourA colleague of mine was having a bit of trouble getting drag and drop working in a way that fitted well with the MVVM pattern. This is really quite simple once you have a certain level of understanding of Patterns, but is a complete nightmare if you do not. One of the founding principals of MVVM is that you should never be writing code in your code behind, it should all be encapsulated away and be bindable in XAML to achieve the result. Anyone who has tackled ...
Some time ago, Craig Shoemaker asked me if I wanted to talk about design time data in MVVM on his Polymorphic podcast, and of course I said yes. Following in the steps on my buddies Josh Smith and Tim Heuer was a bit scary, but hey, this is what we do, right, following the steps of giants and trying not to look too silly while we do it :) Read the rest of this entry » ...
In this Issue: Jeff Handley, John Papa, and Pete Blois. Shoutouts: Koen Zwikstra announced Document Toolkit 1.1 Beta 2 available Brian Genisio has a Adventures in MVVM – MVVM Interview with him and David Giard. From SilverlightCream.com: Not Breaking on ValidationException (take 2)Jeff Handley reworks a post based on a reader's comment and great addition to his ValidationException post. Swivel Behavior in Silverlight 3John Papa turns a swivel effect into a Behavior, gives some props to Joel Neubeck ...
More Adventures in MVVM It has been a while since I have posted. With CodeStock, GiveCamp, Vacation, overtime at work and my other speaking gigs, I have been very busy. But things are calming down. I have several posts I’d like to get out, but for the time being, I thought I would post my conversation with David Giard about the MVVM pattern: ...
My good friend and super hero programmer Pete Blois posted an impressive collection of samples using and extending Expression Blend behaviors and triggers on Codeplex some time ago. There are a few real treasures in there, and some of them that I would like to integrate in my MVVM Light toolkit, thus avoiding to reinvent the wheel. I am still checking the license (the Samples use the MS-PL license) but I think it should work just fine. Read the rest of this entry » ...
The need As certain as the sun rising tomorrow, there will come the point where you will want to display a list or grid with paging. While many solutions exist, and many component developers are coming in with robust solutions, a simple and satisfactory solution can be created fairly easily. Implementation Why create a pager from scratch? Several reasons: 1) You want to control the pager completely – display, style and all. 2) You don't like the idea of JavaScript paging, which will load your hundreds ...
In this Issue: Ian T. Lackey(2), Shawn Wildermuth, David Anson, Jesse Liberty(2), Scott Marlowe, Gavin Wignall, Brad Abrams, and Robby Ingebretsen. Shoutouts: John Papa's latest article is available in MSDN Magazine: Binary Encoding and Handling Faults in Silverlight 3 Stefan Olson has his own version of: Bugs fixed (or not) in Silverlight 3 RTW David Kelley has announced an MSDN Webcast: geekSpeak: Composite Application Development (Level 200) András Velvárt gave me this link which is a promo for ...
It’s been a couple weeks since it was first announced that the Engineered Experiences team won Microsoft’s newCloudApp() contest and it’s about time I got around to blogging about it. First things first, I couldn’t start this post without congratulating the other team members: Scott Densmore and Dwayne Brown, you guys rock! What Is IMPULSE? Check it out: http://www.myimpulselive.com As a software developer I am all about reuse so here’s the copy+paste from our newcloupapp.com description: IMPULSE ...
In this Issue: Danijel Stulic, Corey Schuman, Erik Mork, Evgeny, Brad Abrams, René Schulte, Kevin Dockx, and Alexey Zakharov. Shoutouts: Steve Strong details a positive experience: Learning RIA Services: It's Great to be a Silverlight Developer Nikhil Kothari gives a 'Twitter Pitch' for .NET RIA Services: .NET RIA Services Twitter Pitch Shawn Wildermuth is on DNR TV with Carl Franklin: See Carl and I Talk about Behaviors on DNR-TV! Walt Ritscher has a good article up at Dev 102: Changing Brush Brightness ...
In this Issue: Shawn Wildermuth, Qixing Zheng, Amy Dullard, Andrea Boschin, Kirupa Chinnathambi, Stefan Olson, Katrien De Graeve(2), and Brad Abrams. From SilverlightCream.com: Prism's Plugin Architecture Shawn Wildermuth used the IModuleManager interface in Prism to ultimately implement his own downloader to intercept the XAP file. And as usual, he's got all the code out there. um.. is it just me or does Shawn's new picture on his blog seem to follow you :) Plenty of Color Resource for Expression ...
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
In this Issue: Steve Strong(2), Christian Schormann, Gavin Wignall, Kirupa Chinnathambi, Laurent Bugnion, Expression Blend and Design Blog, and Brad Abrams. Shoutouts: Koen Zwikstra answers questions about Silverlight Spy and Silverlight 3 RTW Laurent Bugnion also answers similar questions about Silverlight 3, Blend 3 and the MVVM Light Toolkit ... see the link below for installing MVVM Light From SilverlightCream.com: Bing Maps Silverlight Control Part 4: Drawing Circles To Scale Somewhere along ...
The big news today is of course the launch of Silverlight 3. Microsoft organized a big event in San Francisco (I was invited, but could not make it to SF in time, unfortunately :() and there was a big celebration. Together with Silverlight 3 RTM, we were given Expression Blend 3 Release Candidate (including SketchFlow). Read the rest of this entry » ...
Below is a list of downloads for Silverlight 3. It includes all necessary downloads together. The majority are new updates and releases since the Silverlight 3 release. A few are older releases but should work with Silverlight 3. I’ll try to keep the list up to date when new releases follow. If you know a tool, library or framework for Silverlight that isn’t on the list, please let now by commenting, mailing or thru twitter. Development/Design Silverlight 3 RTW (3.0.40818.0) Microsoft® Silverlight™ ...
Update: This post is obsolete, and has been replaced by a newer article. Please refer to the Get Started page for details!!

Read the rest of this entry »

I am a keen believer when building applications in having a clean logical architecture with separation of concerns as much as possible – taking into account the goals of the project and the environment in which the application will be maintained. As such, when it makes sense I believe in use of MVC, MVP, MVVM etc type patterns to enable efficient development and maintenance of applications. I can testify to the worth of adopting these styles to improve the quality of products developed from my experience ...
Mother of all Blog Posts Building expertise in WPF / Silverlight · Core Programming Concepts: Declerative programming, Dependency properties, DataBinding, Commands, Triggers, VSM, Control templating, the inheritence model , XAML extensions and control templating · Transforms and animations - SVG experience helps · Comprehend the core differences in SL and WPF- lack of Commands and Triggers (Behaviours and VSM are superior anyway), Calling different types of services (WCF, Sockets, Duplex, ADO.NET ...
This is the first post in a series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. This post is beginners stuff - there’s nothing advanced here. Most readers with some experience of Silverlight will learn nothing from this post, but I want to start at the beginning so those of you who are relatively new to Silverlight can see how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app ...
In January and March 2009 I presented to the East Bay .NET and San Francisco Bay .NET user groups respectively on how to build business applications in Silverlight. The theme of the presentations was to show how developing line of business applications in Silverlight is extremely similar to other technologies like Win Forms, WPF or ASP.NET. I demoed how to build a simple CRUD application in Silverlight hitting a SQL Server database over WCF. The building of the application during the presentation ...
Last year I developed a demo CRM sales application in Silverlight with Ward Bell - VP Product Management at IdeaBlade - so that we could show it off by the time of PDC 2008. We wanted to show the capability of Silverlight (being developed on 2.0 beta - converted to 2.0 RTM by the start of PDC) to build advanced context sensitive business apps in Silverlight, given that most Silverlight demos being touted around were purely rich media or graphics related. We were successful in developing the prototype ...
Normal 0 MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Normal 0 MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; ...
From The Silverlight Blog: http://team.silverlight.net... Microsoft announced it will bring Interactive Advertising Bureau (IAB) recognized rich media technologies including Silverlight to Xbox LIVE within the next year From Pete Brown’s Blog: http://tinyurl.com/ljede5 Pete Brown demonstrates how to bind to a UI element, with the example being a character count for a textbox. From Laurent Bugnion’s Blog: http://geekswithblogs.net/l... ...
In this Issue: Erno de Weerd, Colin Eberhardt, Thanigainathan Siranjeevi, Stefan Olson(2), Dan Wahlin, Chris Klug, and Alex Golesh. Shoutouts: Tim Greenfield has entered the NewCloudApp Windows Azure contest with a Silverlight app and asks us to Look what Silverlight can do... for now he has his submittal, a cool jigsaw puzzle, but he promises to write all about it. From SilverlightCream.com: Silverlight, Windows Live Writer and WordPress Erno de Weerd blogged this and it's been picked up by others. ...
In this Issue: Brian Genisio, Cristian Merighi, Terence Tsang, Gavin Wignall, and Alex Golesh(2), Shoutouts: The Expression Blend and Design blog announced Deep Zoom Composer - June 2009 Preview! Unni posted a set of links on Blend 3 Databinding From SilverlightCream.com: Adventures in MVVM -- Ball of Mud vs MVVM Brian Genisio discusses a demo he's doing of the contrast between a messy untested app and a good componentized one all of which is a twitter search app in WPF. Parametric Shader Effect ...
More Adventures in MVVM A demo that I added to my MVVM talk is one that compares a “Ball of Mud” application with a componentized MVVM application with the exact same set of features. I do this to contrast a messy, un-testable work of code to a cleanly separated, testable work. The application I chose to write is a Twitter search application in WPF. When you download the code, you will see two folders: “BallOfMud” and “MVVM”. The “Ball of Mud” app includes the entire app in a XAML file and a code-behind. ...