When clearing a root datacontext by removing from visual tree, binding further down the tree remains

[Silverlight] I have a large visual object tree I'm removing from the visual tree (Grid.Children.Clear()), upon removal the DataContext of the root nulls out, but further down the tree a binding which looks like this

<Grid DataContext="{Binding FooBar}">

is staying bound to the object it was previously bound to. One would think that the binding would clear once it's DataContext has been nulled out. Is it wrong to clear the children of a grid like this? What else could be causing it?

Answers


Need Your Help

MongoDb TTL on nested document is possible?

c# mongodb indexing mongodb-csharp ttl

I want to know if it's possible to use TTL on nested documents.

Advantages / Disadvantages of Frameworks

frameworks web-frameworks

I am really interested in peoples experiences with Frameworks, what they have found to be the advantages/disadvantages. I know its not a programming question per-say but it is to help me to decide ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.