internal static void RegisterAsKnown(DependencyProperty dependencyProperty, byte byteVal, PropertyValidity propertyValidity)
        {
            if (dependencyProperty == null)
                throw new ArgumentNullException("dependencyProperty");
            if (knownProperties[byteVal] != null)
            {
                throw new InvalidOperationException(SR.GetString(SR.Error_AlreadyRegisteredAs, knownProperties[byteVal].dependencyProperty.ToString()));
            }

            dependencyProperty.KnownIndex = byteVal;
            knownProperties[byteVal] = new KnownDependencyProperty(dependencyProperty, propertyValidity);
        }
Esempio n. 2
0
 internal static void RegisterAsKnown(DependencyProperty dependencyProperty, byte byteVal, PropertyValidity propertyValidity)
 {
     if (dependencyProperty == null)
     {
         throw new ArgumentNullException("dependencyProperty");
     }
     if (knownProperties[byteVal] != null)
     {
         throw new InvalidOperationException(SR.GetString("Error_AlreadyRegisteredAs", new object[] { knownProperties[byteVal].dependencyProperty.ToString() }));
     }
     dependencyProperty.KnownIndex = byteVal;
     knownProperties[byteVal]      = new KnownDependencyProperty(dependencyProperty, propertyValidity);
 }
 internal KnownDependencyProperty(DependencyProperty dependencyProperty, PropertyValidity propertyValidity)
 {
     this.dependencyProperty = dependencyProperty;
     this.propertyValidity = propertyValidity;
 }
Esempio n. 4
0
 internal KnownDependencyProperty(DependencyProperty dependencyProperty, PropertyValidity propertyValidity)
 {
     this.dependencyProperty = dependencyProperty;
     this.propertyValidity   = propertyValidity;
 }