/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
- namespace Microsoft.VisualStudio.IDE.ToolboxControlsInstaller
- {
- using Microsoft.Windows.Design.Interaction;
- using Microsoft.Windows.Design.Metadata;
- //using Microsoft.Windows.Design.Metadata.Reflection;
- using System;
-
- public class CreationToolCreator
- {
- //internal static CreationTool GetCreationTool(IMetadataContext metadata, Type controlType)
- //{
- // ITypeMetadata type = metadata.GetType(typeof(CreationToolAttribute));
- // ITypeMetadata metadata3 = metadata.GetType(controlType);
- // CreationTool tool = null;
- // foreach (IAttributeMetadata metadata4 in metadata3.GetAttributes(type))
- // {
- // CreationToolAttribute attribute = (CreationToolAttribute) metadata4.GetValue();
- // if (attribute.ToolType != null)
- // {
- // tool = Activator.CreateInstance(attribute.ToolType) as CreationTool;
- // }
- // if (tool != null)
- // {
- // tool.CreationType = controlType;
- // }
- // return tool;
- // }
- // return tool;
- //}
- }
- }
-