Пример #1
0
        public PropertyMetadata GetMetadata(DependencyObjectType dependencyObjectType)
        {
            if (dependencyObjectType != null)
            {
                return(GetMetadata(dependencyObjectType.SystemType));
            }

            return(null);
        }
Пример #2
0
        public static DependencyObjectType FromSystemType(Type systemType)
        {
            if (_typeMap.ContainsKey(systemType))
                return _typeMap[systemType];

            DependencyObjectType dot;

            _typeMap[systemType] = dot = new DependencyObjectType(_currentID++, systemType);

            return dot;
        }
Пример #3
0
        public static DependencyObjectType FromSystemType(Type systemType)
        {
            if (_typeMap.ContainsKey(systemType))
            {
                return(_typeMap[systemType]);
            }

            DependencyObjectType dot;

            _typeMap[systemType] = dot = new DependencyObjectType(_currentID++, systemType);

            return(dot);
        }
Пример #4
0
 public bool IsSubclassOf(DependencyObjectType dependencyObjectType)
 {
     return(dependencyObjectType != null && _systemType.IsSubclassOf(dependencyObjectType.SystemType));
 }
Пример #5
0
 public bool IsSubclassOf(DependencyObjectType dependencyObjectType)
 {
     return dependencyObjectType != null && _systemType.IsSubclassOf(dependencyObjectType.SystemType);
 }
Пример #6
0
        public PropertyMetadata GetMetadata(DependencyObjectType dependencyObjectType)
        {
            if (dependencyObjectType != null)
                return GetMetadata(dependencyObjectType.SystemType);

            return null;
        }