Sep 13, 2011 at 1:48 AM
Edited Sep 13, 2011 at 2:58 PM
I'm getting unexpected behavior. My query is:
Children = ExpressionObserver.Execute(this, t => Composite.Members.OfType<Attribute>().Select(member => new AttributeNode(member, this))).Cascade();
When I add a new Attribute instance (e.g. attribute1) to Composite.Members, then 2 AttributeNodes containing attribute1 appear in Children.
When I add a second instance (e.g. attribute2), the Children collection now (corrrectly) has a single instance of attribute1, but 2 instances of attribute2. Etc.
However this problem only occurs when the Children collection is bound to a view, otherwise it works as expected.
What could I be missing? Thanks.