Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to debug MVVM pattern project?

Posted on 2013-05-23
2
Medium Priority
?
466 Views
Last Modified: 2013-06-02
I'm working in an existing application which is implemented in MVVM pattern (C#). I'm struggling while debugging the application such as where the button in the code and on clicking the button which method is executed. I need to put breakpoint to diagnose and error. Could you please assist how to debug the MVVM patten project?
0
Comment
Question by:Easwaran Paramasivam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
MikeToole earned 1500 total points
ID: 39194625
Can you post the definition of the button?
The usual approach with mvvm is to link the button to an ICommand in the view-model
If the Button is defined in xaml, there should be an entry like ...
Command="{Binding MyCommand}"
... where MyCommand is a property of the view-model

To debug, you put your breakpoint on the method executing the command in the VM
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39214834
Thanks.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question