Пример #1
0
 public void ClearValue(DependencyPropertyKey key)
 {
     this.ClearValue(key.DependencyProperty);
 }
Пример #2
0
 public void SetValue(DependencyPropertyKey key, object value)
 {
     this.SetValue(key.DependencyProperty, value);
 }
Пример #3
0
        public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata, DependencyPropertyKey key)
        {
            if (forType == null)
            {
                throw new ArgumentNullException("forType");
            }

            if (typeMetadata == null)
            {
                throw new ArgumentNullException("typeMetadata");
            }

            // further checking?  should we check
            // key.DependencyProperty == this?
            typeMetadata.Merge(this.DefaultMetadata, this, forType);
            this.metadataByType.Add(forType, typeMetadata);
        }