Click here to Skip to main content
15,888,527 members
Everything / MVVM

MVVM

MVVM

Great Reads

by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.
by Alan Beasley
Explanation and examples of Additional Templates and Generated Content of a ListBox. Covering Layout, Transitions, and Animation.
by Nish Nishant
An ExifReader class in C# that supports custom formatting and extraction. StyleCop compliant code, with demos for WPF and Windows Forms.
by defwebserver
How using the Silverlight DataTrigger allows you to run a process and then raise another when using View Model (MVVM)

Latest Articles

by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
by Federico Alterio
Description of a library that allows to use a porting of Angular Signals in .NET MVVM Frameworks
by Graeme_Grant
MVVM made simple via Blazing.Mvvm Library using the Microsoft Community Toolkit
by Jo_vb.net
How to get started using the MVVM Toolkit

All Articles

Sort by Title

MVVM 

10 Dec 2013 by Member 8920414
Here is the link to this articles WPF DataGrid Practical Examples Ran the code with Visual Studio 2012 after installing the WPF Toolkit from add refrences. It compiles, and appears to run, but the buttons do not all work correctly. That buttons that crashes the program are listed...
17 Sep 2014 by sureshsankar
how to display " No Record Found" Message in RowDetailsTemplate of WPF datagrid, if there is no record in itemSource? I am using following code in MVVM structure
9 Mar 2009 by Paul_Wade
A WPF application for viewing RSS video feeds. Built using the MVVM pattern.
8 May 2013 by koleraba
HiI have a more theoretical than a "hands on" question regarding the "design-time" data for WPF applicatons which use the MVVM pattern. Lately I use two kinds of view-models in my applications. The "runtime" view-models which are used at runtime and "design-time" view-models which are...
8 May 2013 by _Maxxx_
Interesting question.I'm not a big IOC user so what I offer may not be applicable.in my mvvm 'framework' my design time data (essentially view models) inherit from the run time view models.I initially put them in the view project with the views - but I just had a quick try and moved...
8 May 2013 by Mohammed Hameed
Hi,,,I support your last solution only because I think thats the most effective one in your scenario.I suggests you to give it a name something like XYZ.Common (instead of XYZ.Interfaces). By this I mean dont tie it only for defining Interfaces but also other types as well which are meant...
20 Feb 2014 by Sacha Barber
WPF: Version II of my 100% Reflective class diagram creation tool.
21 Oct 2015 by 1234ctk
I need to do a project with 3-tieras I understand the 3 tier architecture work like that:I have the view-the UI of the user,I have the BLL that have the business logic and the DAL+Model-(I want to use in entity framework)-these three are different projects on the same solution and for...
21 Oct 2015 by phil.o
We cannot decently answer to your question, it is too vague.You may need to follow several tutorials around WPF, WCF, MVVM or not, to get a closer idea of what you are going to need, and which tool will be the most useful for you. We cannot do that for you, deciding with which technology you...
21 Oct 2015 by Snesh Prajapati
MVVM is a UI layer pattern so obviously must be used in UI layer. As you have BL and DL layer too, In your ViewModel classes of MVVM, you should be using your exiting Models and BL code. And per 3 layer architecture BL would be using DL. For more have a look on...
23 Jun 2010 by rudigrobler
7MC Gofer is a Windows Phone 7 based remote control for my Windows Media Center.
27 Feb 2018 by Amir Jalilifard
Lets take an exciting travel to the land of MVC, MVP and MVVM patterns with our sexy friend : JavaScript
13 Aug 2010 by David Veeneman
An article about a Bindable WPF RichTextBox
19 Aug 2015 by Vishal.KumarSingh
Hello, I need a complete CRUD application made in MVVM (C#) which includes basic functionality like connecting to database using Entity framework, have functionality like AddEmployee, EditEmployee , DeleteEmployee and SearchEmployee. It should use Commands.I am having hard time searching...
19 Aug 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
16 Nov 2020 by Erik Nagel
Usable demo demonstrating some aspects of application architecture
11 Dec 2009 by Abby Fichtner (Hacker Chick)
A tutorial and application on using WPF Data Binding with LINQ to SQL classes. This is part 3 of a three-part tutorial on using LINQ to SQL.
22 Feb 2009 by Raul Mainardi Neto
An implementation of the MVVM Patterns + CommandModel within a WPF LOB application.
26 Dec 2010 by Inder gujral
A Nmeric Up Down Control for WPF
6 Jul 2011 by Weidong Shen
This article describes building a sample Silverlight application with the MVVM Light toolkit, WCF RIA Services, and a pluggable application architecture using MEF.
21 May 2010 by Dr. Song Li
This article gives a practical quick-start tutorial on MVVM in WPF for application developers.
11 Jan 2011 by Kunal Chowdhury «IN»
A Quick Guide to Silverlight Ribbon Controls (Part - 1)
7 Jul 2011 by Weidong Shen
Part 1 of a series describing the creation of a Silverlight business application using MEF, MVVM Light, and WCF RIA Services.
8 Jul 2011 by Weidong Shen
Part 2 of a series describing the creation of a Silverlight business application using MEF, MVVM Light, and WCF RIA Services. In this second part, we will go through various topics on how MVVM Light Toolkit is used in our sample application.
8 Jul 2011 by Weidong Shen
Part 3 of a series describing the creation of a Silverlight business application using MEF, MVVM Light, and WCF RIA Services. In this part, we will discuss how custom authentication, reset password, and user maintenance are implemented in the sample application.
30 Aug 2010 by defwebserver
This module allows you to easily gather, and process Expense Reports, from users in your DotNetNuke portal
8 Mar 2011 by Weidong Shen
Part 1 of a series describing creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates.
8 Mar 2011 by Weidong Shen
Part 2 of a series describing the creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates.
8 Mar 2011 by Weidong Shen
Part 3 of a series describing the creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light Toolkit, MEF, and T4 Templates.
12 Apr 2011 by Weidong Shen
Part 4 of a series describing creation of a Silverlight business application using Self-tracking Entities, WCF Services, WIF, MVVM Light toolkit, MEF, and T4 Templates.
21 Jun 2010 by Arun Jacob
This is a simple Silverlight RSS Reader which pulls out data from a feed URL.
23 Dec 2010 by Ashley Davis
Explains how to create a control whose position you can data-bind a property to
13 May 2010 by Dr. Song Li
This article gives a simple tutorial on developing ASP.NET applications in MVC pattern.
24 May 2011 by Colin Eberhardt
This blog post shows how to implement tombstoning within a Windows Phone 7 application that follows the Model-View-ViewModel pattern.
13 Oct 2012 by Bernardo Castilho
An article that shows how to implement MVVM apps with KnockoutJS and custom controls.
5 May 2011 by Pat Capozzi
In this article, I reduce the use of the MVVM pattern in Silverlight to the absolute minimum lines of code in order to understand the basics.
13 Jun 2012 by wim4you
This article describes a Tabbed File Explorer with minimal functionality using only basic MVVM techniques and some attached properties. In a first article I described a MVVM Tabbed Navigation Tree, in this article I add a Tabbed Folderplane.
14 Sep 2013 by Thomas Willwacher
A WPF Find/Replace Manager, usable with most text editors and both SDI and MDI interfaces
27 Apr 2012 by FenRunner
This is an alternative for "A Universal WPF Find / Replace Dialog"
17 Oct 2011 by Colin Eberhardt
A Windows Phone 7.1 (Mango) MVVM Tombstoning Example
21 Dec 2018 by Michael Shpilt
Shows how to create two Wizard-type applications using Model-View-ViewModel-Controller navigation framework
26 Jul 2013 by hari111r
Hi I am new to MVVM. I am trying to convert my prism application in mvvm pattern. I have a custom datagrid control which has few non dependency property and fuctions. How can I access those properties in my view model.Below are the few properties and fuction i am using in my...
8 Jun 2010 by David Bobeck
Using attached properties in WPF or Silverlight to loosely couple UI element events to arbitrary code.
16 Apr 2009 by Pete O'Hanlon
Action based ViewModel and Model Validation
8 Mar 2017 by Arkadeep De
Hi,I am new in WPF and trying to add textboxes on button click with ViewModel. I am able to add the textboxes but not able to fetch the data.What I have tried:I have tried these..XML ...
8 Mar 2017 by Graeme_Grant
Use an ItemsControl and bind it to an ObservableCollection. The Model's properties are bound in the ItemTemplate.So as you add Models to the collection, the TextBoxes will auto-generate and bind to each Model's property.
11 Oct 2015 by LahD
I tried with removing title bar using WindowStyle="None"But I need to to show and hide the title bar in WPF by mouse over. So how can I proceed to do this in xaml code?
11 Oct 2015 by VR Karthikeyan
Hi,You can achieve this using MouseLeave and MouseEnter events of the WPF Window, But this solution will create a fluctuation when you move cursor near to title bar. So I suggest you to use Mahapps.Metro - a UI toolkit for WPF. It provides extended properties for WPF window. Follow the steps...
29 May 2012 by santosh_pathak
Hands on developing MVVM Application without any Frameworks
29 May 2012 by santosh_pathak
This is the Second Part XML file as data source in Windows8
3 Dec 2014 by Bruce Greene
An alternative MVVM implementation that employs a set of proxy control classes to act as a sort of "Platonic Ideal" WPF page for interaction with the view model.
29 Mar 2010 by Nish Nishant
An ExifReader class in C# that supports custom formatting and extraction. StyleCop compliant code, with demos for WPF and Windows Forms.
9 Apr 2010 by Nish Nishant
This article shows you how to add menu items to the system menu and attach command handlers in an MVVM compatible fashion
1 Apr 2010 by rudigrobler
In my “quest” to create thumbnails similar to the ones used in Internet Explorer 8, I hit a couple of snags!
1 Apr 2011 by xandytsui
An Introduction to a new Android-java based MVVM Presentation Framework
8 Mar 2016 by Konstantin A. Magg
This post presents a JavaScript (ECMAScript 5) version of the Angular 2 tutorial "Tour of Heroes". Learn how to implement the TypeScript examples in JavaScript/ES5. This article covers part 1, 2 and 3 of the original tutorial.
5 Mar 2016 by Konstantin A. Magg
This post presents a JavaScript (ECMAScript 5) version of the Angular 2 tutorial "Tour of Heroes". Learn how to implement the TypeScript examples in JavaScript/ES5. This article covers part 4 and 5 of the original tutorial.
30 May 2018 by DannyStaten
Introduction to Angular's Directives and how you can use them to create your own attributes to define behavior in a highly reusable way
26 Dec 2023 by Federico Alterio
Description of a library that allows to use a porting of Angular Signals in .NET MVVM Frameworks
20 Jan 2010 by danielpalme
Overview of data structures and animations.
24 Feb 2014 by Pheonyx
Hi Guys,I have a bit of an odd scenario and was wondering if you could shed any light on it.I've written a WPF application that works as a data importer. It uses the MVVM approach and works very nicely.During development I have implemented try catch's for error handling which catch...
24 Feb 2014 by Dave Kreskowiak
It's not that your existing try/catch blocks are not catching the new error. It's the you don't have a try/catch block around the code that is causing the new error. Something in your code is making as assumption that is no longer valid when running outside of the project environment.I...
19 Oct 2010 by Florin Badea
This article presents a way to apply data templates dynamically by type in the Windows Phone 7 platform
31 May 2017 by cobek
Hi all, I created a Simple Chat Application using WPF/WCF and I have doubts if I correctly implemented MVVM pattern in it. The main chat window has underlying view model which is assigned to window DataContext property (standard solution, I guess): class ChatWindowViewModel :...
31 May 2017 by Pete O'Hanlon
Some of what you have is moving towards the correct solution. However you veer suddenly off track when you introduce a hard-coupling in the code behind of the windows where you start to refer directly to methods and behaviours of the ViewModel. Part of the problem I think is that you have a...
10 Aug 2012 by Omar Gameel Salem
Implementation of the Apriori algorithm in C#.
4 Sep 2010 by Kunal Chowdhury «IN»
Here, I am consolidating all the Silverlight Articles that I posted in my Blog and CodeProject for your further reference. It includes articles of last six months.
25 Apr 2012 by Razi Syed
Easily bind a class to .NET data controls like GridView, FormView, etc., and get an updated object or list back in the code-behind effortlessly.
24 Nov 2013 by K. Naveen. Bhat
Tips to make Asp.Net MVC4 UI development easier with the flavor of knockout js.
9 Sep 2019 by vladimir husnullin
This article shows how to create a single page web applciation using AngularJS. It will be helpful for people willing to study Angular and MVVM practices.
17 Nov 2015 by vladimir husnullin
MVC/SPA/REST in web development with Jeneva.Net
16 Oct 2013 by nm.nagaraju
Hi,I am working on wpf(mvvm) application where i have a label in one form(view) and i want to assign a text dynamically to the label from viewmodel.Any help?
17 Oct 2013 by Balamurugan1989
Inside the load event u need to write the code..You just tell me what you have tried....
17 Oct 2013 by Punamchand Dhuppad
For this, You have to add one public property inside the your ViewModel and Implement INotifyPropertyChanged. And Lastly Bind that property to your Label control's Content property.For example :1) Inside the ViewModel add property:private List inputString = new...
29 Jan 2014 by Member 10558492
textbox.Text += inp.ToString();StringBuilder sb = new StringBuilder;string sep = "";for (int i = 0; i
16 Aug 2012 by Juan Pablo G.C.
Using MVVM with Windows 8 Modern UI.
29 Aug 2017 by Valerii Tereshchenko
Asynchronous validation for MVVM(WPF)
9 Nov 2010 by Your Display Name Here
Shows how to implement an asynchronous Model in the MVVM pattern.
27 Jan 2012 by Jarrey
Attached Command for Windows 8 Metro Style in C#
22 Feb 2011 by mbcrump
This article describes how to attach a command to the Windows Phone 7 Application Bar.
28 Jul 2010 by Jeremy Alles
Description of a method which uses attribute to perform user entry validation in a WPF MVVM application
16 Feb 2010 by Syed Mehroz Alam
How to customize an AutoCompleteBox as a type-ahead ComboBox for Line of Business applications.
1 Jul 2010 by Guia-Project
Unit-Testing of WPF User Controls via UI automation
29 Jan 2016 by Member 4027561
Experimenting with C# expression trees for creating data-bound UI's from code.
6 Sep 2011 by EmitsorGrp
Automatically generate a Windows Phone 7 settings page.
21 Aug 2009 by Sandrino Di Mattia
Validate your business entities in a maintainable way.
24 May 2010 by WPFanatic
Typesafe INotifyPropertyChanged implementation without run-time Reflection and without lambda expressions.
19 Dec 2011 by jmp26
Starting the (long?) migratory path from MSAccess/VBA to Net web apps, I want to learn about using MVVM with AvalonDock and WPF. Running both of the sample apps for AvalonDock 1.3 and AvalonDockMVVM ( Ashley Davis) under VS2010 with Net 4.0 result in the same error once I start manipulating the...
18 Feb 2022 by antobaro
Hi All, Scenario : a process write a textfile and in meantime another with the progress bar show current situation. At the end a messagebox show Done What's wrong ? The code doesn't show the progress situation, and only at the end I can see...
15 Jun 2015 by Sacha Barber
Azure: how to upload and stream video content to WPF from blob storage
31 Mar 2010 by Sacha Barber, Richard E King, Fredrik Bornander
This is true code, what you say
30 Mar 2015 by Florian Rappl, Niki Kilbertus
Using Microsoft Azure to add advanced machine learning capabilities with connected IoT devices, which monitor activities of a baby and his or her environment.
29 Dec 2016 by Pete O'Hanlon
This series of articles covers MVVM from the absolute beginning; no frameworks and no helpers, we're going to learn MVVM from the nuts and bolts.
5 Jan 2017 by Pete O'Hanlon
Learning MVVM from the nuts and bolts
23 Feb 2017 by Pete O'Hanlon
Templates and how we can use them to support developing MVVM applications
14 Jun 2017 by Ram349
Hi All, i am trying to implement SelectAll/UnSelectAll and Multiple items selected from Listbox using Wpf MVVM.but i am getting issue in ViewModel.i written the below code.any one could you please share the solution to me. XAML Code
14 Jun 2017 by Richard Deeming
Quote: i written the below code. foreach (item i in yourCollection) { i.IsSelected = true; } You clearly didn't write that code. You found some pseudo-code posted somewhere *, and copied it to your project without bothering to understand what it's doing, or what parts you need to replace. ...