1
Vote

Binding exceptions appear and can be observed in Output while debug

description

Simply, it is connected with ContextMenu.
here is a fragment of output debug information:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=PlacementHolder'. BindingExpression:(no path); DataItem=null; target element is 'Popup' (Name='PART_popup'); target property is 'PlacementTarget' (type 'UIElement')

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=PlacementHolder'. BindingExpression:(no path); DataItem=null; target element is 'Popup' (Name='PART_popup'); target property is 'PlacementTarget' (type 'UIElement')

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name='domainSet'); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItem' (Name='domainSet'); target property is 'VerticalContentAlignment' (type 'VerticalAlignment')

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItem' (Name='domainUnSet'); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment')

comments