﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Dathan commented on How to find the stack trace for data binding?</title><description>Two of my three approaches were already mentioned above:
  
  
1) Breakpoint in the property getter/setter;
  
2) Throw an exception in the property getter/setter;
  
  
Also, you could use the profiling API, but I don't think that counts as an "elegant solution."
  
  
For WinForms, you could probably also attach Format and/or Parse listeners to the Binding, and break/throw inside the appropriate methods.  There's no guarantee that the call to Format/Parse is going to be made within the specific call stack that you're hoping to find, though.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment14</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment14</guid><pubDate>Fri, 24 Sep 2010 14:57:54 GMT</pubDate></item><item><title>Ren&amp;#233; van den Berg commented on How to find the stack trace for data binding?</title><description>Subclass Binding?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment13</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment13</guid><pubDate>Fri, 24 Sep 2010 09:09:22 GMT</pubDate></item><item><title>Leon Breedt commented on How to find the stack trace for data binding?</title><description>Trace points and printing of $CALLSTACK?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment12</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment12</guid><pubDate>Thu, 23 Sep 2010 21:26:40 GMT</pubDate></item><item><title>Shawn Wildermuth commented on How to find the stack trace for data binding?</title><description>Converter.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment11</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment11</guid><pubDate>Thu, 23 Sep 2010 17:11:02 GMT</pubDate></item><item><title>Daniel Hoelbling commented on How to find the stack trace for data binding?</title><description>Dynamic Proxy Interceptor with a Breakpoint in it? ;)
  
  
greetings Daniel
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment10</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment10</guid><pubDate>Thu, 23 Sep 2010 15:26:20 GMT</pubDate></item><item><title>Alex Simkin commented on How to find the stack trace for data binding?</title><description>@Samuel Jack  Yep. That's how I do it too.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment9</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment9</guid><pubDate>Thu, 23 Sep 2010 12:57:05 GMT</pubDate></item><item><title>Samuel Jack commented on How to find the stack trace for data binding?</title><description>Put breakpoints in the get and set methods of properties that are databound, then look at the stack trace in Visual Studio. 
  
  
For bonus points, enable .Net Framework source stepping and you can step through the databinding engine.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment8</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment8</guid><pubDate>Thu, 23 Sep 2010 11:48:50 GMT</pubDate></item><item><title>Hugo commented on How to find the stack trace for data binding?</title><description>Use a "debug" converter, which does nothing but return the value passed in, and set a breakpoint in the "Convert" method?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment7</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment7</guid><pubDate>Thu, 23 Sep 2010 11:24:03 GMT</pubDate></item><item><title>Lars Hundertwasser commented on How to find the stack trace for data binding?</title><description>This sounds like "Fermat's Last Theorem" :). Sure hope the outcome will be different.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment6</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment6</guid><pubDate>Thu, 23 Sep 2010 11:22:29 GMT</pubDate></item><item><title>Harry M commented on How to find the stack trace for data binding?</title><description>I have discovered a truly marvelous method to find the methods used in databinding, in WPF or Winforms. This margin is too narrow to contain it.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment5</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment5</guid><pubDate>Thu, 23 Sep 2010 11:03:40 GMT</pubDate></item><item><title>Paulo Quicoli commented on How to find the stack trace for data binding?</title><description>Maybe, using some AOP you can log those methods for further use.
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment4</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment4</guid><pubDate>Thu, 23 Sep 2010 10:47:19 GMT</pubDate></item><item><title>Dalibor Čarapić commented on How to find the stack trace for data binding?</title><description>Use StackTrace class?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment3</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment3</guid><pubDate>Thu, 23 Sep 2010 10:37:52 GMT</pubDate></item><item><title>Andres commented on How to find the stack trace for data binding?</title><description>Dynamics?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment2</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment2</guid><pubDate>Thu, 23 Sep 2010 10:13:55 GMT</pubDate></item><item><title>configurator commented on How to find the stack trace for data binding?</title><description>Throwing an exception and looking at its stack trace?
</description><link>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment1</link><guid>http://ayende.com/4638/how-to-find-the-stack-trace-for-data-binding#comment1</guid><pubDate>Thu, 23 Sep 2010 10:12:00 GMT</pubDate></item></channel></rss>