Exemplo n.º 1
0
        public void ClearValue(DependencyPropertyKey key)
        {
            if (key == null)
                throw new ArgumentNullException("key");

            ClearValue(key.DependencyProperty);
        }
Exemplo n.º 2
0
        public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata, DependencyPropertyKey key)
        {
            if (forType == null)
                throw new ArgumentNullException("forType");
            if (typeMetadata == null)
                throw new ArgumentNullException("typeMetadata");
            if (key == null)
                throw new ArgumentNullException("key");

            // further checking?  should we check
            // key.DependencyProperty == this?

            typeMetadata.DoMerge(DefaultMetadata, this, forType);
            _metadataByType.TryAdd(forType, typeMetadata);
        }
Exemplo n.º 3
0
        public void SetValue(DependencyPropertyKey key, object value)
        {
            if (key == null)
                throw new ArgumentNullException("key");

            SetValue(key.DependencyProperty, value);
        }