Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleDeprecated

This feature is deprecated and will be removed in a future version.

If your custom metadata requires a complex user interface (anything beyond the simple text edit control provided by the property grid) to edit, you'll need to add designer support. Otherwise, there won't be any way for the user to enter values for properties that make use of your metadata type. To add designer support, you'll need to build an editor for your type or use an existing UITypeEditor. An editor is simply a class that subclasses the .NET System.Drawing.Design.UITypeEditor class.

...

When the user wants to edit the DropDownEditProperty and clicks in the property sheet, CodeSmith Generator will display the custom designer:

 


Info
For more information on building custom designers please read Building custom UITypeEditors.

...

NameAssemblyObsoleteDescription
CodeSmith.Engine.CodeFileParserPickerCodeSmith.Engine 
Allows you to browse for a CSharp or VisualBasic class file.
CodeSmith.Engine.XmlPropertyFilePickerCodeSmith.Engine 
This type editor can be used on a class that supports XML serialization to allow the user to pick an XML file and have that XML file deserialized into the target class.
CodeSmith.Engine.XmlSchemaFilePickerCodeSmith.Engine 
Allows you to browse for an XSD Schema.
CodeSmith.CustomProperties.AssemblyFilePickerCodeSmith.CustomProperties 
Allows you to browse for an assembly.
CodeSmith.CustomProperties.FileNameEditorCodeSmith.CustomProperties 
Allows you to browse for a file.
CodeSmith.CustomProperties.NameValueCollectionEditorCodeSmith.CustomPropertiesYESAllows you to quickly edit an NameValueCollection.
CodeSmith.CustomProperties.StringCollectionEditorCodeSmith.CustomPropertiesYESAllows you quickly edit a string collection.
CodeSmith.CustomProperties.XmlSerializedFilePickerCodeSmith.CustomProperties 
Allows you to browse for an Xml file.

...