我們創建了新的TFS工作項目。過了一段時間,我們開始在控制UI佈局時遇到問題。 (以屏幕截圖爲例)。控件之間的空間非常大。如果我們重新運行查詢 - 一切都會變得很好。再次運行後,佈局再次損壞。TFS自定義工作項目中的UI問題
UI佈局按照建議的方式修改爲:Is it possible to customize "History" tab for Bug/Task work item types?。
什麼是這一點,如何解決它的理由?
編輯:佈局中添加
<FORM>
<Layout>
<Group Label="General" Margin="(1,1,1,1)">
<Column FixedWidth="100">
<Control FieldName="Custom.IssueType" Type="FieldControl" Label="Issue Type:" LabelPosition="Left" />
<Control FieldName="Custom.Priority" Type="FieldControl" Label="Priorit&y:" LabelPosition="Left" />
</Column>
<Column PercentWidth="100">
<Group Margin="(2,2,2,2)">
<Column PercentWidth="100">
<Control FieldName="System.Title" Type="FieldControl" Label="&Title:" LabelPosition="Left" />
</Column>
</Group>
<Group Margin="(2,2,2,2)">
<Column PercentWidth="50">
<Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&Area:" LabelPosition="Left" />
</Column>
<Column PercentWidth="50">
<Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="&Iteration:" LabelPosition="Left" />
</Column>
</Group>
</Column>
</Group>
<Group Margin="(1,1,1,1)">
<Column PercentWidth="70">
<Group Label="Status" Margin="(1,1,1,1)">
<Column PercentWidth="50">
<Control FieldName="System.State" Type="FieldControl" Label="&State:" LabelPosition="Left" />
<Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&gned to:" LabelPosition="Left" />
</Column>
<Column PercentWidth="50">
<Control FieldName="System.Reason" Type="FieldControl" Label="&Reason:" LabelPosition="Left" />
<Control FieldName="Custom.CustomerIssue" Type="FieldControl" Label="&Customer Issue:" LabelPosition="Left" />
</Column>
</Group>
</Column>
<Column FixedWidth="400">
<Group Label="Details" Margin="(1,1,1,1)">
<Column PercentWidth="50">
<Control FieldName="Custom.FoundInBuild" Type="FieldControl" Label="&Found in build:" LabelPosition="Left" />
<Control FieldName="Custom.ResolvedInBuild" Type="FieldControl" Label="Resolved in &build:" LabelPosition="Left" />
</Column>
<Column PercentWidth="50">
<Control FieldName="Custom.HelpAuthoring" Type="FieldControl" Label="Help Authoring:" LabelPosition="Left" />
<Control FieldName="Custom.RankInt" Type="FieldControl" Label="Ran&k:" LabelPosition="Left" NumberFormat="WholeNumbers" MaxLength="10" />
</Column>
</Group>
</Column>
</Group>
<TabGroup Margin="(1,1,1,1)">
<Tab Label="Content">
<Group>
<Column PercentWidth="50">
<Control FieldName="System.Description" Type="HtmlFieldControl" Label="Des&cription:" LabelPosition="Top" Dock="Fill" />
</Column>
<Column PercentWidth="50">
<Control FieldName="System.History" Type="WorkItemLogControl" Label="&History:" LabelPosition="Top" Dock="Fill" />
</Column>
</Group>
</Tab>
<Tab Label="Links">
<Control Type="LinksControl" LabelPosition="Top" />
</Tab>
<Tab Label="File Attachments">
<Control Type="AttachmentsControl" LabelPosition="Top" />
</Tab>
<Tab Label="Misc.">
<Group>
<Column PercentWidth="50">
<Group Label="">
<Column PercentWidth="50">
<Group Label="Estimated Time">
<Column PercentWidth="100">
<Control FieldName="Custom.EstimatedTimeTotal" Type="FieldControl" Label="Total:" LabelPosition="Left" />
<Control FieldName="Custom.EstimatedTimeLeft" Type="FieldControl" Label="Left:" LabelPosition="Left" />
</Column>
</Group>
</Column>
<Column PercentWidth="50">
<Group Label="Other">
<Column PercentWidth="100">
<Control FieldName="Custom.Localization" Type="FieldControl" Label="Localization:" LabelPosition="Left" />
<Control FieldName="Custom.Rebrand" Type="FieldControl" Label="Rebrand:" LabelPosition="Left" />
</Column>
</Group>
</Column>
</Group>
</Column>
</Group>
</Tab>
</TabGroup>
</Layout>
</FORM>
所有工作項目都會發生此問題,還是特定於工作項目中的某些數據?您可能還需要包含工作項定義的FORM部分以供審閱。 – Robaticus 2011-02-28 17:26:41
你仍然有這個問題嗎? – Vaccano 2011-03-09 22:26:59