DataContextSpy

I just blogged about my new DataContextSpy class, over on my other blog. It uses Hillberg’s Freezable trick to gain access to an inheritance context from an object that is not in a logical tree. DataContextSpy is very simple, so it should be reusable in many scenarios.

I hope eventually Microsoft provides a first-class addition to WPF that makes it easy to create an artificial inheritance context. Having to rely on that strange aspect of Freezable is kinda…

LAME!

…though it’s great to have in the toolbox. 😉

4 Responses to DataContextSpy

  1. Sam Jack says:

    Josh,
    I created an issue on MS Connect about this (https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=321931&SiteID=212)

    6 days ago it was marked as closed. Is this good or bad? You decide.

    Sam

  2. Josh Smith says:

    Sam,

    I’m surprised that they closed the issue without even leaving a comment. What’s up with that?

    Josh

  3. S Britz says:

    I believe the correct spelling is….

    Hella-Lame!

  4. Josh Smith says:

    Indeed! 😀

%d bloggers like this: