Hopping outside the box [How to: Leapfrog Bindings (bridge DataContexts) in Silverlight and WPF]

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments (9)
  1. Mark says:

    I just spent 2 days trying to figure out EXACTLY this and had just about given up.  Very serendipitous.  Thanks.

  2. Klinger says:

    I have used both  techniques before but for some reason I always felt like cheating.

    In any case, they work and address a real issue, so I  consider them a valid approach.

  3. Manos says:

    Thanx for the useful technique but in this case I would prefer to bind the Visibility property of the TextBlock to the IsChecked property of the CheckBox using a converter. I don't like clutter my ViewModel with view-specific properties (and this is how the fight begins :D).

  4. SpamMe says:

    This is new in silverlight 4? I can remember have tested it in sl3 and the binding couldn't find an element outside the data template.

  5. David Anson says:


    That's totally up to you – I won't fight you on it. 🙂

  6. David Anson says:


    All the necessary functionality to support this was present in Silverlight 3 – but it's entirely possible there was a bug that got in the way.

  7. Steve Strong says:

    This is very clever,  most ElementName binding examples attach to the scroll bar,  you are doing sometning new and very useful

  8. Barb says:

    Doesn't work with datagrids

  9. David Anson says:


    Sorry to hear that! If you want to send me a simple project that demonstrates the problem, I can pass it on to the DataGrid folks to have a look at. (I assume you're referring to the Silverlight SDK DataGrid…)


Comments are closed.

Skip to main content