internal InspectorReactionRegistrar(ITypeFinder typeFinder) { var dr = DescriptorRegistrar.Create(typeFinder); dr.Add(typeof(ValueType), new StaticGenerator()); dr.Add(typeof(Enum), new EnumGenerator()); dr.Add(typeof(ImageSource), UIPropertyDescriptors.Image); }
public static DescriptorRegistrar Create(ITypeFinder typeFinder) { if (_registrar == null) { _registrar = new DescriptorRegistrar { _typeFinder = typeFinder }; } return(_registrar); }