projects/wms-framework/src/lib/basecomponentmodel/Bindings/BindingOperations.ts
Binding operations methods
Methods |
|
Static SetBinding | ||||||||||||
SetBinding(dependencyObject: DependencyObject, dependencyProperty: DependencyProperty, binding: Binding)
|
||||||||||||
Sets a binding for a dependency property
Parameters :
Returns :
void
|
import { DependencyObject } from '../DependencyObject';
import { DependencyProperty } from '../DependencyProperty';
import { Binding } from './Binding';
/**
* Binding operations methods
*
* @export
* @class BindingOperations
* @wType System.Windows.Data.BindingOperations
*/
export class BindingOperations {
/**
* Sets a binding for a dependency property
*
* @param {DependencyObject} dependencyObject
* @param {DependencyProperty} dependencyProperty
* @param {Binding} binding
* @memberof BindingOperations
*/
public static SetBinding(
dependencyObject: DependencyObject,
dependencyProperty: DependencyProperty,
binding: Binding
) {
dependencyObject.SetBinding(dependencyProperty, binding);
}
}