Click here to Skip to main content
15,881,092 members
Articles / Desktop Programming / Windows Forms

Knit - A Visual Studio Add-In

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
30 Dec 2007CDDL8 min read 34.9K   415   21  
Knit is a Visual Studio add-in tool that allows a developer to apply multi-step patterns to solution and assembly meta-data.
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copied from the code sample at http://msdn2.microsoft.com/en-us/library/ms415141.aspx -->
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">USAddress</Field>
		<Field Name="ParentType">MultiColumn</Field>
		<Field Name="TypeDisplayName">US Address</Field>
		<Field Name="TypeShortDescription">
			US Address(12345 NE 123 St. Redmond, WA 98052)
		</Field>
		<Field Name="UserCreatable">TRUE</Field>
		<Field Name="FieldTypeClass">
			AdventureWorks.FieldTypes.USAddressField, AdventureWorks.FieldTypes,
			Version=1.0.0.0,Culture=neutral,PublicKeyToken=90734cc53324b79c
		</Field>
		<PropertySchema>
			<Fields>
				<Field Name="DefaultCity" DisplayName="Default City"
				  MaxLength="50" DisplaySize="15" Type="Text">
					<Default>Redmond</Default>
				</Field>
				<Field Name="DefaultState" DisplayName="Default State"
				  MaxLength="2" DisplaySize="2" Type="Text">
					<Default>WA</Default>
				</Field>
				<Field Name="DefaultZip" DisplayName="Default Zip" MaxLength="5"
				  DisplaySize="5" Type="Text">
					<Default>98052</Default>
				</Field>
			</Fields>
		</PropertySchema>
		<RenderPattern Name="DisplayPattern">
			<Switch>
				<Expr>
					<Column/>
				</Expr>
				<Case Value="">
				</Case>
				<Default>
					<Column SubColumnNumber="0" HTMLEncode="TRUE"/>
					<HTML><![CDATA[<BR>]]></HTML>
					<Column SubColumnNumber="1" HTMLEncode="TRUE"/>
					<HTML><![CDATA[, &nbsp;]]></HTML>
					<Column SubColumnNumber="2" HTMLEncode="TRUE"/>
					<HTML><![CDATA[ &nbsp;]]></HTML>
					<Column SubColumnNumber="3" HTMLEncode="TRUE"/>
				</Default>
			</Switch>
		</RenderPattern>
	</FieldType>
</FieldTypes>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
Architect Hitachi Consulting
United States United States
27 years of experience in information systems project management, architecture, analysis, and implementation.
I specialize in highly technical software architectures and development involving the very latest technologies. With several years experience in object-oriented design and development, I am able to produce workable designs for most object-oriented languages and design environments available today. Have a thorough understanding of software development life cycles and methodologies. Coached development teams on software engineering, including project management, database design and process design. Communicate effectively to, and wins respect from, both board members and hard-core development staff.
Notable projects include: Share Point web parts and other customizations; Colored Petri-net engine; Knowledge management system; .NET based RDF data store; several persistent object stores; Wireless Field Force Automation; Wireless E-commerce work order system; B2B e-commerce purchase order system; survey package; catalog purchasing system; SGML document viewing system; stock and bond trading system; accounting systems; project management applications; Electronic Mail and electronic library systems; EAI engine system architecture.
Other projects were developed as early as 1980, involving the networking of mainframes and personal computers.
Published author, inventor and member of the IEEE Computing Society.

Comments and Discussions