Which part are you having trouble with? I assume the bindings, so maybe something like this
TextEdit textedit = ...;
Binding binding = new Binding();
binding.ElementName = "dXCustomers";
textedit.SetBinding([somedependencyproperty], binding);
binding = new Binding("Text");
binding.RelativeSource = new RelativeSource(RelativeSourceMode.Self);
binding.Mode = BindingMode.TwoWay;
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
textedit.SetBinding([somedependencyproperty], binding);