PageRenderTime 36ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/SolutionFramework/ControlProviders/ToolboxInstaller/Microsoft/VisualStudio/IDE/ToolboxControlsInstaller/CreationToolCreator.cs

#
C# | 32 lines | 9 code | 2 blank | 21 comment | 0 complexity | 92a0e6363435fdd724cb899ded2d92b1 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0
  1. namespace Microsoft.VisualStudio.IDE.ToolboxControlsInstaller
  2. {
  3. using Microsoft.Windows.Design.Interaction;
  4. using Microsoft.Windows.Design.Metadata;
  5. //using Microsoft.Windows.Design.Metadata.Reflection;
  6. using System;
  7. public class CreationToolCreator
  8. {
  9. //internal static CreationTool GetCreationTool(IMetadataContext metadata, Type controlType)
  10. //{
  11. // ITypeMetadata type = metadata.GetType(typeof(CreationToolAttribute));
  12. // ITypeMetadata metadata3 = metadata.GetType(controlType);
  13. // CreationTool tool = null;
  14. // foreach (IAttributeMetadata metadata4 in metadata3.GetAttributes(type))
  15. // {
  16. // CreationToolAttribute attribute = (CreationToolAttribute) metadata4.GetValue();
  17. // if (attribute.ToolType != null)
  18. // {
  19. // tool = Activator.CreateInstance(attribute.ToolType) as CreationTool;
  20. // }
  21. // if (tool != null)
  22. // {
  23. // tool.CreationType = controlType;
  24. // }
  25. // return tool;
  26. // }
  27. // return tool;
  28. //}
  29. }
  30. }