Pages

Showing posts with label MVVM. Show all posts
Showing posts with label MVVM. Show all posts

Saturday, 20 October 2012

Using the MVVM Pattern in Windows 8

Expression Blend for Windows Store Apps with Design-Time Data Using the MVVM Pattern in Windows 8
Any programmer with previous experience in any of the XAML-based frameworks has probably at least heard of the Model-View-ViewModel (MVVM) pattern. Some have been using it extensively in all of their Windows Presentation Foundation (WPF), Silverlight or Windows Phone applications. Others have avoided it, either because they misunderstand what the pattern does, exactly, or because they don’t want to add what they see as a new level of complexity to their application.

Read More
Download the Code Sample

Thursday, 6 September 2012

Understanding and debugging design time data in Expression Blend


One of my favorite features in Expression Blend is the ability to attach a Visual Studio debugger to Blend. First let’s start by answering the question: why exactly do you want to do that?

Note: If you are familiar with the creation and usage of design time data, feel free to scroll down to the paragraph titled “When design time data fails”.

Creating design time data for your app
When a designer works on an app, he needs to see something to design. For “static” UI such as buttons, backgrounds, etc, the user interface elements are going to show up in Blend just fine. If however the data is fetched dynamically from a service (web, database, etc) or created dynamically, most probably Blend is going to show just an empty element.

The classical way to design at that stage is to run the application, navigate to the screen that is under construction (which can involve delays, need to log in, etc…), to measure what is on the screen (colors, margins, width and height, etc) using various tools, going back to Blend, editing the properties of the elements, running again, etc. Obviously this is not ideal.

Read More

Wednesday, 29 August 2012

Minimalistic MVVM for Windows Runtime XAML Platform Development with C#


I have been using MVVM for a few years now and always felt it needed a summary of the state of things as well as my own opinion about it. This is it today. My approach to MVVM has been changing from the time when I was an eager student, through a devoted disciple, till today when I see it as a small tool in the toolbox of a XAML developer.

MVVM

The Model View View Model (MVVM) pattern is an architectural pattern used for separation of concerns in applications. It is popular in Microsoft’s XAML-based UI frameworks such as WPF, Silverlight or WinRT/XAML.

Read full article here

Tuesday, 28 August 2012

Caliburn.Micro MVVM Framework

Caliburn.Micro MVVM FrameworkCaliburn.Micro is a small, yet powerful framework, designed for building applications across all Xaml Platforms. With strong support for MVVM and other proven UI patterns, Caliburn.Micro will enable you to build your solution quickly, without the need to sacrifice code quality or testability.

Download from here and it's also available at NuGet


JulMar MVVM Helpers + Behaviors For Windows 8 RTM

The MVVM Helper + Behavior library is a set of classes for developers to help them build Model-View-ViewModel oriented applications. It includes some useful classes, a base framework for MVVM and a bunch of Blend behaviors, triggers and actions.

There are several examples available at http://www.julmar.com/blog/mark where I've been blogging on how to use this library. I'll push some of that information up here as well.

You can install MVVMHelpers through NuGet http://www.nuget.org - just search for MVVMHelpers, it will add the latest version into your project automatically from within Visual Studio if you install the NuGet plug-in.

Alternatively, you can type the following into the Package Manager console to add it to your project:

PM> Install-Package Install-Package MVVMHelpers.Metro

Download DLL from here
Source code for MVVMHelpers for Windows 8 Metro

Web Informer Button