MonoMobile.Views.BindingOperations.ClearBinding C# (CSharp) Метод

ClearBinding() публичный статический Метод

public static ClearBinding ( object target, string property ) : void
target object
property string
Результат void
        public static void ClearBinding(object target, string property)
        {
            var bindingExpression = GetBindingExpression(target, property);
            if (bindingExpression != null)
            {
                _BindingExpressions.Remove(bindingExpression);
            }

            var binding = _Bindings.SingleOrDefault((kvp)=>kvp.Key.Object == target && kvp.Key.Property == property);
            if (binding.Key != null)
            {
                _Bindings.Remove(binding.Key);
            }
        }