-
MVPVM: A Palindrome that Helps You Recycle
Last updated: Tuesday, December 6, 2022
Published in: CODE Magazine: 2022 - November/December
The trouble with reusing code is that when you update, you have to update everywhere. Alexander teaches you how to simplify this process and make sure that you’re not creating problems somewhere else in the system.
-
Use the MVVM Design Pattern in MVC Core: Part 3
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2020 - September/October
Paul shows you how to use the MVVM design pattern in MVC Core to build a product detail page for adding and editing data, and validating product data and display validation.
-
Use the MVVM Design Pattern in MVC Core: Part 2
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2020 - July/August
In a MVC Core application using an MVVM design pattern, learn to sort data when a user clicks on a column header in an HTML table. Learn to add a pager to limit the number of rows displayed on a page. Learn to cache data in the Session object to improve performance.
-
Use the MVVM Design Pattern in MVC Core: Part 1
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2020 - May/June
Learn to use the Model-View-View-Model (MVVM) design pattern, long used in WPF applications, in MVC Core applications. Using MVVM in MVC makes your applications even more reusable, testable, and maintainable.
-
Bootstrap 3: What’s It All About?
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2014 - January/February
Bootstrap 2.x was a great product, but you’ll build more attractive, more inviting, and more accessible websites with the next Bootstrap. Jim and Scott tell us what’s new.
-
Mobile Development with Single-Page Applications Using KendoUI
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2013 - July/August
When considering mobile development, you have a variety of techniques to choose from. In many cases, reactive rendering (using CSS media queries) provides a good solution. Additional mobile customization can be achieved by using ASP.NET MVC4 device detection/customization to provide adaptive rendering. Both of these techniques follow the traditional Web development pattern where each page is focused on a specific task. In an application managing a list, there is a page devoted to the list of items, a second page to view details, and perhaps a third to edit a specific item.
-
CODE Framework: Accelerating Development with Standard Views and Standard View-Models
Last updated: Friday, June 10, 2022
Published in: VFP Conversion Papers, Markus Egger Talks Tech, CODE Magazine: 2013 - January/February
In prior articles, I have shown how to create WPF-based applications using the CODE Framework and the MVVM and MVC patterns. This enabled developers to create quality applications quickly and in a fashion that can easily be understood by developers of all skill levels. In those articles I showed how to use view-models and views to create UIs. In this article, I am going to take this concept further by showing you how you do not even have to create new views and view-models, but instead can use the ones CODE Framework defines for you out of the box.
-
Getting Rid of Your Code Behind
Last updated: Wednesday, February 20, 2019
Published in: CODE Magazine: 2012 - July/August
You know you should be moving code out from behind your forms, windows and web pages and into stand-alone classes. Everyone preaches that this is what to do, everyone shows you examples of ViewModel classes, but no one really shows you a real-world example of how to get rid of the code behind.
-
CODE Framework: Writing MVVM/MVC WPF Applications
Last updated: Tuesday, February 19, 2019
Published in: VFP Conversion Papers, CODE Magazine: 2012 - January/February, Markus Egger Talks Tech
The CODE Framework is an open-source application framework by the makers of CODE Magazine. It is entirely free of charge. It covers a wide range of features that can be applied altogether or individually in an À la carte fashion. All of these features revolve around a single concept: Building advanced business applications in a productive and maintainable fashion while maintaining great application architecture. In this article, we are focusing on a subset of the CODE Framework, specifically the components used to build WPF applications using the MVVM and MVC patterns.
-
Windows Phone 7 Development Using MVVM and Unit Testing
Last updated: Thursday, February 21, 2019
Published in: CODE Magazine: 2012 - January/February
As readers of this magazine, you are all experts at certain facets of software development, be it for the desktop, the web, SQL Server and now mobile platforms. Mobile programming was a fairly arcane development arena up until the recent announcement of Windows Phone 7 (WP7). Prior to WP7, you had to become intimately familiar with the myriad platforms and form factors available and write your programs to each of those phones. With the advent of WP7, Microsoft is now controlling the hardware capabilities of the phone making it much easier to develop for these platforms. You can now also leverage existing skills in Silverlight and XNA to write your apps. But the question always remains: how do I get started and what is the best way to write for the new WP7? In a previous article, <i>CODE Magazine </i>Jan/Feb 2011, I showed you what to do to get started; now I want to show you the best way to apply what you have learned in that article. I will use Silverlight, the Model-View-ViewModel (MVVM) pattern, and Silverlight Unit testing to build a sample app.
-
MVVM Made Simple
Last updated: Tuesday, February 19, 2019
Published in: CODE Magazine: 2010 - November/December
Struggling to grasp the concepts of Model-View-View-Model? Keep it simple!
-
Building Windows 8 Apps with C# and XAML - Introduction to UI Design Patterns for Windows 8 Apps Chapter Excerpt
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts
In this excerpt from Building Windows 8 Apps with C# and XAML, learn about the various parts of MVVM and how to apply it with a special focus on testing. By Jeremy Likness, Published Oct 25, 2012 by Addison-Wesley Professional. Part of theMicrosoft Windows Development Series series. Copyright 2013 ISBN-10: 0-321-82216-1 ISBN-13: 978-0-321-82216-1. To Purchase go to: http://www.informit.com/store/building-windows-8-apps-with-c-sharp-and-xaml-9780321822161?w_ptgrevartcl=%20Introduction%20to%20UI%20Design%20Patterns%20for%20Windows%208%20Apps%20_1960915.
-
Xamarin in Action
Last updated: Tuesday, February 19, 2019
Published in: Book Excerpts, Newsletters
Xamarin is a toolset that allows you to write native mobile apps in C# and run them on both iOS and Android devices. What makes Xamarin stand out from other cross-platform tools is that it gives you the ability to share large portions of code across these two platforms while still letting you write native apps that can take full advantage of the device and OS features specific to each platform. And since Xamarin was recently acquired by Microsoft, you can be sure the ecosystem will continue to grow - Xamarin has become a hugely important part of Microsoft's "any developer, any platform" mantra. Xamarin in Action teaches you how to build Xamarin apps on iOS and Android from scratch while maximizing code re-use. This layer-by-layer guide starts by showing you the MVVM design pattern and explaining how it increases code sharing. Next, you'll start building an app from the ground up. You'll learn all the different layers inside a well written Xamarin app and discover how most of your code can be shared between iOS and Android. You'll look at how this code sharing can be best designed to allow unit testing of your business layer as well as your UI logic. Then you'll dig in to code that can’t be shared, like user interface code that's device specific. Finally, you'll learn how to take your app from final code to a tested and deployed version on the relevant store. By the end, you'll be able to build a high quality production-ready Xamarin app on iOS and Android from scratch with a high level of code reuse.