public Visual GetControl(Application application) { if (control == null) { control = new Control_NumericUnaryOpHolder(application, "Absolute"); control.SetBinding(Control_NumericUnaryOpHolder.OperandProperty, new Binding("Operand") { Source = this, Mode = BindingMode.TwoWay }); } return(control); }
public Visual GetControl(Application application) { if (control == null) { control = new Control_NumericUnaryOpHolder(application, typeof(WaveFunctionType)); control.SetBinding(Control_NumericUnaryOpHolder.OperandProperty, new Binding("Operand") { Source = this, Mode = BindingMode.TwoWay }); control.SetBinding(Control_NumericUnaryOpHolder.SelectedOperatorProperty, new Binding("WaveFunc") { Source = this, Mode = BindingMode.TwoWay }); } return(control); }