System.Waf.Presentation.ValidationHelper.CheckBindingMode C# (CSharp) Method

CheckBindingMode() private static method

private static CheckBindingMode ( BindingMode bindingMode ) : void
bindingMode BindingMode
return void
        private static void CheckBindingMode(BindingMode bindingMode)
        {
            if (!WafConfiguration.IsInDesignMode && bindingMode != BindingMode.OneWayToSource)
            {
                throw new InvalidOperationException("The binding mode of the IsValid attached dependency property must be 'Mode=OneWayToSource'!");
            }
        }
    }