Book Image

Team Foundation Server 2015 Customization

By : Gordon Beeming
Book Image

Team Foundation Server 2015 Customization

By: Gordon Beeming

Overview of this book

Table of Contents (17 chapters)
Team Foundation Server 2015 Customization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using a custom control in the process template


Although we have not created a custom control yet, I thought it would be a good idea to start with modifying the process template to use a custom control that we will make. This will give you the extra benefit of knowing what happens if you configure a process template to use a custom control and one is not found.

Go back to where you had your process template saved (in the How do I get started? section of Chapter 3, Customizing Your Process Template) and open the ProductBacklogItem.xml work item definition. Find the Title control, which will look something like this:

<Control FieldName="System.Title" Type="FieldControl" ControlFontSize="large" EmptyText="&lt;Enter title here&gt;" />

Now, to use a custom control (which doesn't exist yet), we will replace this line with the following code:

<Control FieldName="System.Title" 
Type="TfsTitleStrengthIndicator" />

This will indicate to TFS that whenever the product backlog item is rendered...