How correct add PropertyPath ?
I need binding usercontrol DataContext to DataContext, TwoWay.
var binding = new Binding()
{
Mode = BindingMode.TwoWay,
Source = ((FrameworkElement)sender),
Path = new PropertyPath(FrameworkElement.DataContextProperty)
};
binding.Source = ((FrameworkElement) sender);
changeImage.SetBinding(FrameworkElement.DataContextProperty, binding);
Also it would help if you will say what is wrong with your code.