Problem with TFS WorkItem Layout

I am customizing the TFS work item type by adding an HTML “Business Description” field, but I cannot get the layout correctly:

<Tab Label="Details"> <Group> <Column PercentWidth="60"> <Control FieldName="Customer.BusinessDescription" Type="HtmlFieldControl" Label="Business Description:" LabelPosition="Top" Dock="Fill" /> </Column> <Column PercentWidth="40"> <Control FieldName="Microsoft.VSTS.CMMI.Symptom" Type="HtmlFieldControl" Label="Symptom:" LabelPosition="Top" /> <Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;History:" LabelPosition="Top" /> </Column> </Group> </Tab> 

It turns out like this: undesired layout

Although I really want this ("Photoshopped" with MSPaint): desired layout

I played with the Fill properties in all three fields, already set the MinimumSize property in the BusinessDescription field, added a group inside the left column, but it seems I did not find a solution for this.

Is it possible?

+6
source share
1 answer

You need to create a group inside the left and right columns:

 <Tab Label="Details"> <Group> <Column PercentWidth="60"> <Group> <Column PercentWidth="100"> <Control FieldName="Customer.BusinessDescription" Type="HtmlFieldControl" Label="Business Description:" LabelPosition="Top" Dock="Fill" /> </Column> </Group> </Column> <Column PercentWidth="40"> <Group> <Column PercentWidth="100"> <Control FieldName="Microsoft.VSTS.CMMI.Symptom" Type="HtmlFieldControl" Label="Symptom:" LabelPosition="Top" /> <Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;History:" LabelPosition="Top" /> </Column> </Group> </Column> </Group> </Tab> 

You can also check out the Power Editor Process Editor tool, a GUI for editing work item types.

+5
source

Source: https://habr.com/ru/post/886701/


All Articles