public static void SetToolTipBindingPath(this TextControl textControl, Func <string> toolTipBinding)
 {
     textControl.Bind("ToolTip", new DelegateBinding <string>(
                          toolTipBinding,
                          s => { textControl.ToolTip = toolTipBinding.Invoke(); }
                          ));
 }
 public static void SetTextBindingPath(this TextControl textControl, Func <string> textBinding)
 {
     textControl.Bind("Text", new DelegateBinding <string>(
                          textBinding,
                          s => { textControl.Text = textBinding.Invoke(); }
                          ));
 }