TFS工作项布局问题

发布于 2024-11-03 09:40:25 字数 1042 浏览 0 评论 0原文

我正在自定义 TFS 工作项类型,添加“业务描述”HTML 字段,但我无法获得正确的布局:

      <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>

结果如下: undesired layout

虽然我真的想要这个(用 MSPaint 进行“Photoshop处理”): desired layout

我已经在所有三个字段上使用了 Fill 属性,并且已经在 BusinessDescription 字段上设置了 MaximumSize 属性,在左栏中添加了一个组,但我似乎没有找到解决方案。

这有可能吗?

I'm customizing a TFS Work Item Type, adding a 'Business Description' HTML Field, but I cannot get the Layout right:

      <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="&History:" LabelPosition="Top" />
          </Column>
        </Group>
      </Tab>

This turns out like this:
undesired layout

While I really want this ('Photoshopped' with MSPaint):
desired layout

I have played around with the Fill properties on all three fields, have already set the MinimumSize property on the BusinessDescription field, added a group inside the left column, but I do not seem to find a solution for this.

Is this at all possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叹沉浮 2024-11-10 09:40:25

您需要在左列和右列中创建一个组:

<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="&History:" LabelPosition="Top" />
        </Column>
      </Group>
    </Column>
  </Group>
</Tab>

您可能还想查看 Process Editor Power Tool - 它提供了用于编辑工作项类型的 GUI 界面。

You'll want to create a group inside both 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="&History:" LabelPosition="Top" />
        </Column>
      </Group>
    </Column>
  </Group>
</Tab>

You may also want to check out the Process Editor Power Tool - this provides a GUI interface to editing work item types.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文