tags:

views:

33

answers:

1

My output window is flooded with binding expression failures like :

"Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.UserControl', AncestorLevel='1''. BindingExpression:Path=DataContext.CurrentActivationObjectType; DataItem=null; target element is 'StackPanel' (Name=''); target property is 'NoTarget' (type 'Object')"

and similar binding issues. Also i found that these failure occurs only when the screen loads (i.e. first time) No failures there after.

I've checked the binding it is fine .

Binding :

A: 

It was because binding was rendered before the initialization. Thats why datacontext is not set at the time binding was rendered. On future runs it was working fine as datacontext is set at that time.

Rohit Kandhal