عينة لنموذج عنصر العمل

مثال لتعريف نموذج لنوع عنصر عمل.

<FORM>
    <Layout>
        <Group>
            <Column PercentWidth="70">
                <Control Type="FieldControl" FieldName="System.Title" Label="Title" LabelPosition="Top" />
            </Column>
            <Column PercentWidth="30">
                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.Discipline" Label="Discipline"
                    LabelPosition="Top" />
            </Column>
        </Group>
        <Group>
            <Column PercentWidth="70">
                <Group>
                    <Column PercentWidth="100">
                        <Group Label="Classification">
                            <Column PercentWidth="100">
                                <Control Type="TFStructureControl" FieldName="System.AreaPath" Label="Area" LabelPosition="Left" />
                                <Control Type="TFStructureControl" FieldName="System.IterationPath" Label="Iteration" LabelPosition="Left" />
                            </Column>
                        </Group>
                    </Column>
                </Group>
            </Column>
            <Column PercentWidth="30">
                <Group Label="Status">
                    <Column PercentWidth="100">
                        <Control Type="FieldControl" FieldName="System.AssignedTo" Label="Assigned To" LabelPosition="Left" />
                        <Control Type="FieldControl" FieldName="System.State" Label="State" LabelPosition="Left" />
                        <Control Type="FieldControl" FieldName="System.Reason" Label="Reason" LabelPosition="Left" />
                        <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.Rank" Label="Rank" LabelPosition="Left" />
                    </Column>
                </Group>
            </Column>
        </Group>
        <TabGroup>
            <Tab Label="Summary">
                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.ShortDescription" Label="Summary"
                    LabelPosition="Top" />
                <Control Type="WorkItemLogControl" FieldName="System.History" Label="Detailed Description and History"
                    LabelPosition="Top" Dock="Fill" />
            </Tab>
            <Tab Label="Links">
                <Control Type="LinksControl" />
            </Tab>
            <Tab Label="File Attachments">
                <Control Type="AttachmentsControl" />
            </Tab>
            <Tab Label="Details">
                <Group>
                    <Column PercentWidth="50">
                        <Group>
                            <Column PercentWidth="100">
                                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.Issue" Label="Issue" LabelPosition="Left" />
                                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Common.ExitCriteria" Label="Exit Criteria"
                                    LabelPosition="Left" />
                                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Build.IntegrationBuild" Label="Integration Build"
                                    LabelPosition="Left" />
                            </Column>
                        </Group>
                    </Column>
                    <Column PercentWidth="50">
                        <Group Label="Schedule">
                            <Column PercentWidth="100">
                                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Scheduling.RemainingWork" Label="Remaining Work (hours)"
                                    LabelPosition="Left" />
                                <Control Type="FieldControl" FieldName="Microsoft.VSTS.Scheduling.CompletedWork" Label="Completed Work (hours)"
                                    LabelPosition="Left" />
                            </Column>
                        </Group>
                    </Column>
                </Group>
            </Tab>
        </TabGroup>
    </Layout>
</FORM>

راجع أيضًا:

المبادئ

عناصر تحكم نموذج عنصر عمل