Solved

How to debug MVVM pattern project?

Posted on 2013-05-23
2
417 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
2 Comments
 
LVL 27

Accepted Solution

by:
MikeToole earned 500 total points
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now