Solved

How to debug MVVM pattern project?

Posted on 2013-05-23
2
436 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
I need help adding validation to my MVC.Net view 6 21
Need to sort columns in DataGridView 4 36
linq .concat equivalent with expression syntax 4 23
Problem to copy file 14 50
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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