public void Bind(DependencyProperty dp, DataView source) { TheControl.SetBinding(dp, new Binding() { Source = source, Path = new PropertyPath(DBTableField), Mode = BindingMode.TwoWay, UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged }); }
/// <summary> /// Initializes a new instance of the <see cref="UsbForm"/> class. This creates a private an instance of a private class here to do the monitoring of the usb device change events. /// </summary> /// <param name="handleFactory"> /// The handle factory. /// </param> public UsbForm(IHandleFactory handleFactory) { _control = new TheControl(); _handleFactory = handleFactory; }