Show / Hide Table of Contents

Class BindingOperations

Implements methods for managing bindings

Inheritance
System.Object
BindingOperations
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Data
Assembly: EmptyKeys.UserInterface.dll
Syntax
public static class BindingOperations

Methods

ClearAllBindings(DependencyObject)

Clears all bindings.

Declaration
public static void ClearAllBindings(DependencyObject target)
Parameters
Type Name Description
DependencyObject target

The target.

ClearBinding(DependencyObject, DependencyProperty)

Clears the binding.

Declaration
public static void ClearBinding(DependencyObject target, DependencyProperty dp)
Parameters
Type Name Description
DependencyObject target

The target.

DependencyProperty dp

The Dependency Property.

GetAllBindings(DependencyObject)

Gets all bindings.

Declaration
public static List<BindingExpression> GetAllBindings(DependencyObject target)
Parameters
Type Name Description
DependencyObject target

The target.

Returns
Type Description
System.Collections.Generic.List<BindingExpression>

IsDataBound(DependencyObject, DependencyProperty)

Determines whether [is data bound] [the specified target].

Declaration
public static bool IsDataBound(DependencyObject target, DependencyProperty dp)
Parameters
Type Name Description
DependencyObject target

The target.

DependencyProperty dp

The Dependency Property.

Returns
Type Description
System.Boolean

SetBinding(DependencyObject, DependencyProperty, Binding)

Sets the binding.

Declaration
public static BindingExpression SetBinding(DependencyObject target, DependencyProperty dp, Binding binding)
Parameters
Type Name Description
DependencyObject target

The target.

DependencyProperty dp

The dp.

Binding binding

The binding.

Returns
Type Description
BindingExpression
Back to top Generated by DocFX