Click here to Skip to main content
15,885,546 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 Score

MVVM 

4 Sep 2009 by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.
6 May 2010 by Alan Beasley
Explanation and examples of Additional Templates and Generated Content of a ListBox. Covering Layout, Transitions, and Animation.
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.
6 Nov 2010 by defwebserver
How using the Silverlight DataTrigger allows you to run a process and then raise another when using View Model (MVVM)
8 May 2011 by defwebserver
An example of a Silverlight 4 View Model Style video player that is not just 'skinable' but fully 'designable'.
6 May 2010 by defwebserver
A Silverlight file manager that allows drag and drop multiple file uploads
13 Oct 2012 by Bernardo Castilho
An article that shows how to implement MVVM apps with KnockoutJS and custom controls.
14 Mar 2022 by Paulo Zemek
Mistakes that can be made while using MVVM and how to overcome them
23 May 2012 by wim4you
This article describes one way of using the WPF TreeView to create tabbed Navigational Trees using MVVM for use in a File Explorer. In a next planned article a Tabbed Folder Plane will be added.
12 Apr 2010 by Nish Nishant
The Exif Compare Utility is a WinDiff equivalent for image files that compares the Exif meta-data and displays the differences and similarities. The application is written using WPF and MVVM.
27 May 2014 by thomai87
A responsive two dimensional spreadsheet-like control
12 Nov 2015 by Fred Song (Melbourne)
In this article, we started from Generate Inserts procedure, then go through how generates inserts SQL files with this procedure and runs these inserts SQL files to import data.
25 Jul 2009 by Stephen Cleary
Describes the ViewModel command classes in the Open-Source Nito.MVVM (WPF) library, and provides guidelines on their usage.
20 Nov 2023 by Graeme_Grant
MVVM made simple via Blazing.Mvvm Library using the Microsoft Community Toolkit
10 Mar 2010 by Nic_Roche
This article demonstrates breaking out of the shell with module development and using Caliburn actions.
5 Jan 2017 by Pete O'Hanlon
Learning MVVM from the nuts and bolts
25 Oct 2012 by Enrique Albert
WPF Validation using the IDataErrorInfo interface combined with Validation attributes
27 Aug 2018 by amitthk
RunCmd is a windows batch file editor,runner utility. It can be used to automate our repetitive tasks using commandline batch files.
19 Oct 2010 by Florin Badea
This article presents a way to apply data templates dynamically by type in the Windows Phone 7 platform
29 Jul 2016 by Hein Pauwelyn
This is an application made for Windows (Universal) 10 devices made with MVVM, IoC-containers and dependency injection. There is also an API from Yahoo and SQLite service.
27 Sep 2019 by Mohamed Kalmoua
In this article, I will discuss a WiFi password recovery and management tool that I created in WPF using Visual Studio 2019.
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.
23 Mar 2016 by Rubén Hinojosa Chapel
Prototype for a plugin architecture based on the Prism Library and the Modern UI for WPF (MUI) toolkit
4 Nov 2021 by #realJSOP
A tool to generate model and viewmodel classes directly from your selected database
16 Feb 2024 by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
12 May 2010 by Ivan Krivyakov
WPF: Context Menu on List Item
12 Aug 2014 by Jdarmanovich
WPF MVVM Binding for Multiple Radio Buttons and Win 8 Metro Theme
15 Jul 2017 by dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query
30 Jun 2017 by Daniel Ziegelmiller
Connecting WPF with Windows Workflow (WF)
2 Jan 2020 by Daniel Ziegelmiller
A simplified approach to maintaining the WPF MVVM layers when the ViewModel needs to show a form dialog
29 May 2010 by defwebserver
An example of Silverlight 4 OData Paging with RX Extensions.
2 Dec 2011 by johnlantz
This tutorial shows how to build a simple WPF application using Code First in DevForce.
27 Apr 2012 by FenRunner
This is an alternative for "A Universal WPF Find / Replace Dialog"
19 Dec 2015 by ryanba29
This is a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
29 Dec 2015 by ryanba29
First Draft. This is day three of a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
26 Apr 2010 by George Henry 1954
Presents a class that facilitates high-usability binding of an ordinary TextBox to a numeric property
18 Jun 2010 by Colin Eberhardt
This blog post looks at the problem of showing modal dialog windows in applications that target both the Silverlight and WPF platforms. A solution is provided which allows modal dialogs to be written that work well for both technologies.
29 Jun 2010 by Izhar Lotem
Filter and export to Excel ListView data using MVVM standards.
13 Feb 2011 by Tony Champion (Champion DS)
Binding to a ComboBox in Silverlight: A Gotcha
5 Nov 2011 by Frank Augustin
Describe validation when presenting data in WPF Toolkit’s DataGrid.
11 Feb 2012 by Wonde Tadesse
It's better to look telerik support site.Perhaps this can be the starting point.RadControls Overview[^]
28 Mar 2012 by Michael Soloduha
Extends WPF framework with binding that supports runtime path parameters
29 Nov 2015 by MatthewThomas
Adding design time support for regions in Prism 6
16 Nov 2020 by Erik Nagel
Usable demo demonstrating some aspects of application architecture
3 Jan 2018 by NoMoreComputers
Xamarin and MvvmCross: A simple tutorial for beginners
1 Sep 2009 by Jeremy Likness
Silverlight, with its powerful text and graphics manipulation capabilities and strong interaction with the scripting DOM, seems to be the perfect engine for a Captcha challenge.
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.
30 Sep 2010 by David Furshpan
A simple code that shows how to create, bind and inject View and ViewModel
16 Nov 2011 by Ilya Builuk
Open source project of guitar tablature viewer for Windows Phone
5 Dec 2011 by Wonde Tadesse
I think in this stackoverflow forum explained pretty well.Difference between ObservableCollection and BindingList[^]
27 Jan 2012 by Jarrey
Attached Command for Windows 8 Metro Style in C#
3 May 2012 by Shenwei Liu
The article series shows how to upgrade a Silverlight application having basic patterns to the MVVM and MEF composable patterns with easy approaches and detailed coding explanations.
1 Mar 2013 by Yasser Moradi DNP
Parse CanExecute to detect when CanExecuteChanged should be called.
21 Apr 2013 by slodge
Step 3 in the TipCalc tutorial for MvvmCross v3 - Hot Tuna
23 Oct 2014 by Thomas Mahlberg
This tip describes how to handle BusyIndication and progress report in an MVVM project for several scenarios.
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.
18 Feb 2015 by Alvin Ashcraft
This year I have been looking at and starting to use several components from the Universal 14.2.4 release.
1 Feb 2017 by Clifford Nelson
I have been looking at the few samples available for MVVMLight. I have seen them use the Microsoft ServiceLocator, but when I search for it, I discover that it is obsolete. This was uses with the MVVMLight SimpleIOC. I have seen the following:ServiceLocator.SetLocatorProvider(() =>...
10 Jan 2010 by Daniel Vaughan
In this post, I would like to briefly discuss the System.Windows.Threading.Dispatcher class, and the significant differences between its Silverlight and Desktop CLR implementations.
12 Nov 2010 by User 271009
In the Box – MVVM Training
14 Dec 2010 by Jesse Liberty
In this tutorial we will build a meaningful, and nontrivial Windows phone 7 application. This will give us the opportunity to explore layout controls, interactive controls, Visual Studio and a good bit more.
9 Feb 2011 by Tomer Shamam
Design Time Support for MEF
16 Mar 2011 by Abhishek Sur
RegisterName for StoryBoards in WPF (NameScopes)
9 May 2011 by Laurence1234
Hi everyone, I've written an application in C# that uses WPF (utilising the MVVM design pattern) and LINQ to CRM to retrieve data from a database. I have a problem with threading it seems...This application uses the BackgroundWorker to run a database query. Once it retrieves this...
18 May 2011 by Versile
Hi,I am trying to find a way to shortcut refactor/encapsulate more than the default in Visual Studio. For example, now if I type this:private string serverSMTP = string.Empty;then I can right click, choose Refactor, then Choose Encapsulate and get this:private string serverSMTP...
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.
6 Sep 2011 by EmitsorGrp
Automatically generate a Windows Phone 7 settings page.
23 Jan 2012 by Shahin Khorshidnia
Why did you realize that System.Timers was impossible But it works well for me!void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e){ Dispatcher.Invoke((Action)delegate() { if(Your Conditions) YourMethod(); });}
17 Dec 2012 by Charles Mathis
This is an alternative for "Using RoutedCommands with a ViewModel in WPF".
10 Sep 2013 by Alvin Ashcraft
The Dew Review – DevExpress WPF Subscription – 2013.1 Release
8 Sep 2014 by cogi83
A SW to send your WAN IP and other info via email
31 Jul 2014 by Shrey Chouhan
You are creating different object of CommonViewModel in each user control, you have to create one object and assign them in both user control.Create object of CommonViewModel in MainWindow and then...
26 Sep 2014 by BC3Tech
Microsoft’s XAML provides a way for us to define our UI in a declarative manner. Combined with databinding it means you should – in almost every case – never have to directly reference a UI control to accomplish some work. Add the MVVM design pattern in to the mix and I find myself “rethinking” any
13 May 2015 by Sergey Alexandrovich Kryukov
Who told you that you can only create one view in a single window (and its XAML)?This CodeProject article gives you the simple example of multiple views in one window: MVVMLight Using Two Views[^] (maybe not a very good article, but good enough for the purpose of out discussion).Note, that...
15 May 2015 by Tiancheng Hu
New samples of using ThinkAlike to accomplish Android/Desktop cross-platform development, including helloworld, Web API access and widget UI.
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.
28 Aug 2016 by George Sefcik
This article will show an easy way to add the ability to print, or save as an image, each screen (Window) or FrameworkElement (UserControl) in your application.
30 Mar 2017 by Alexey Solonets
In this tip, you will learn how to create a component with configuration properties and bind to them using MVVM.
30 Mar 2017 by Alexey Solonets
Completing Part 1 and making ViewModels isolated
28 Feb 2018 by Graeme_Grant
Use an ObservableCollection holding Models or ViewModels of the data to be displayed in the multiple UserControls. Then in the XAML file, use an ItemsControl (wrapped inside a ScrollViewer control) or ListBox and set the DataTemple with the UserControl. UPDATE: Here is a working example for you...
27 Apr 2020 by Volodymyr Kopytin
The project explains MVVM design pattern implementation in JavaScript front-end application.
11 Jan 2022 by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
25 Jul 2022 by Federico Alterio
Get rid of all that MVVM boilerplate code just to bind an expression to other properties
23 Oct 2023 by Jo_vb.net
How to get started using the MVVM Toolkit
26 Dec 2023 by Federico Alterio
Description of a library that allows to use a porting of Angular Signals in .NET MVVM Frameworks
4 Jan 2010 by Sacha Barber
WPF: New Threading Component
16 Feb 2010 by Steve Psaltis
This post will be the first in a 3 part series of posts where I will explain how I am currently developing WPF MVVM applications in a testable way with little or no code behind.
23 Jun 2010 by rudigrobler
7MC Gofer is a Windows Phone 7 based remote control for my Windows Media Center.
21 Aug 2010 by Keith Barrow
Is it possible to nest a view model within a view model? Yes: Just create a property of the view model type. A really good idea is to have an IViewModel (which inherits from INotifyPropertyChanged ) and an abstract ViewModel base class. You can even make the child view model property in the...
1 Nov 2010 by #realJSOP
Grid.SetColumn...
16 Jan 2011 by Аslam Iqbal
Set IsReadOnly="True" to IsReadOnly="False". Don't forget to Addnew record.
16 Jan 2011 by Abhishek Sur
To get a textbox updated when a property changes its value, implement your property from INotifyPropertyChanged. http://www.abhisheksur.com/2010/05/object-notifiers-using.html[^]You should also note, binding will not work if you explicitly set TextBox.Text somewhere in code behind....
24 Jan 2011 by rudigrobler
Windows Phone 7 MUST HAVE Toolkits
14 Mar 2011 by rudigrobler
How to make the ApplicationBar bindable in a WP7 application.
13 Apr 2011 by Yunyou Yao
This article shows the implementation of a row header in a grid based on data grouping, and retrieving cell information from a cell-based grid.
9 May 2011 by Olivier Levrey
To display your message box from the UI thread, just use BeginInvoke:yourMainForm.BeginInvoke((Action)(() =>{ //all the code here will be executed in the main thread MessageBox.Show("...");}));Where yourMainForm is a reference to your main form. Actually it can be a...
18 May 2011 by Sergey Alexandrovich Kryukov
Good question.I've read somewhere that customization using Visual Studio code re-factoring engine is planned by Microsoft by not yet delivered. Locate directory where the related snippets are ("[Visual Studio path]\VC#\Snippets\1033\"), just search for "*.snippet" — you will find the...
18 Sep 2011 by theHollow
HelloYou should make a Command, like you mentioned.You can access the Command in many ways, like this for one example: