<my:ObjectControlConfiguration my:TypeName="RequestPropertyCodeBehind"   
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
 xmlns:my="http://schemas.microsoft.com/2006/11/ResourceManagement"   
 xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
  <my:ObjectDataSource my:TypeName="PrimaryResourceObjectDataSource" my:Name="object" my:Parameters=""/>
  <my:ObjectDataSource my:TypeName="RequestDetailsDataSource" my:Name="requestDetails"/>
  <my:ObjectDataSource my:TypeName="RequestStatusDataSource" my:Name="requestStatus"/>
  <my:ObjectDataSource my:TypeName="PrimaryResourceRightsDataSource" my:Name="rights"/>
  <my:ObjectDataSource my:TypeName="SchemaDataSource" my:Name="schema"/>
  <my:XmlDataSource my:Name="RequestStatusTransformXsl">
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
      <xsl:template match="/">
        <table border="0" style="width: 100%">
          <tr></tr>
          <xsl:for-each select="StatusDetail/Status">
          <xsl:sort select="@Date" order="ascending"/>
            <tr>
              <td class="commonListCellBR ms-vb" style="vertical-align: top">
                <img>
                  <xsl:attribute name="src">
                    <xsl:value-of select="@Icon" />
                  </xsl:attribute>
                </img>
              </td>
              <td style="margin-left:10" class="commonListCellBR ms-vb">
                <xsl:choose>
                  <xsl:when test="@Level='Error'">
                    <span style="overflow-y:auto;width:100%" >
                      <xsl:value-of select="@Message"/>
                    </span>
                  </xsl:when>
                  <xsl:otherwise>
                    <span style="overflow-y:auto;width:100%">
                      <xsl:value-of select="@Message"/>
                    </span>
                  </xsl:otherwise>
                 </xsl:choose>
              </td>
            </tr>
          </xsl:for-each>
        </table>
      </xsl:template>
    </xsl:stylesheet>
  </my:XmlDataSource>
   <my:XmlDataSource my:Name="RequestDetailTransformXsl">
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
        <xsl:template match="/">
          <table cellspacing="0" style="width: 100%">
            <tr class="listViewHeader">
              <th align="left" class="commonSummaryListViewHeaderCellBR">%SYMBOL_DetailPropertyColumn_END%</th>
              <xsl:if test="Request/@Action='Put'">
                <th align="left" class="commonSummaryListViewHeaderCellBR">%SYMBOL_DetailOperationColumn_END%</th>
              </xsl:if>
              <th align="left" class="commonSummaryListViewHeaderCellBR">%SYMBOL_DetailTypeColumn_END%</th>
              <th align="left" class="commonSummaryListViewHeaderCellBR">%SYMBOL_DetailValueColumn_END%</th>
            </tr>
            <xsl:for-each select="Request/Parameter">
              <xsl:sort select="@Name" order="ascending"/>
              <xsl:variable name="url" select="@Url"/>
              <xsl:variable name="alternating">
                <xsl:choose>
                  <xsl:when test="position() mod 2 != 0">
                    <xsl:value-of select="concat('commonSummaryListViewCellBR ', 'ms-vb')"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="concat('ms-alternating ', 'commonSummaryListViewCellBR ', 'ms-vb')"/>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:variable>
              <tr>
                <td class="{$alternating}">
                  <xsl:value-of select="@Name"/>
                </td>
                <xsl:if test="/Request/@Action='Put'">
                  <td class="{$alternating}">
                    <xsl:value-of select="@Mode"/>
                  </td>
                </xsl:if>
                <td class="{$alternating}">
                  <xsl:value-of select="@Type"/>
                </td>
                <xsl:if test="$url">
                  <td class="{$alternating}">
                    <a href="{$url}" onclick="javascript:ILM2PopupWindow('{$url}','titlebar=yes, resizable=yes, toolbar=no, menubar=no, location=no, scrollbars=no, height=600, width=800');return false;">
                      <xsl:value-of select="@Value"/>
                    </a>
                  </td>
                </xsl:if>
                <xsl:if test="not($url)">
                  <td class="{$alternating}">
                    <xsl:value-of select="@Value"/>
                  </td>
                </xsl:if>
              </tr>
            </xsl:for-each>
          </table>
        </xsl:template>
      </xsl:stylesheet>
    </my:XmlDataSource>

    <my:Panel my:Name="page" my:Caption="%SYMBOL_EditingPanelCaption_END%">
    <my:Grouping my:Name="caption" my:IsHeader="true" my:Caption="" my:Visible="true">
      <my:Control my:Name="caption" my:TypeName="UocCaptionControl" my:ExpandArea="true" my:Description="{Binding Source=object, Path=DisplayName}">
        <my:Properties>
          <my:Property my:Name="MaxHeight" my:Value="32"/>
   <my:Property my:Name="MaxWidth" my:Value="32"/>
        </my:Properties>
      </my:Control>
    </my:Grouping>

    <my:Grouping my:Name="Basic" my:Caption="%SYMBOL_BasicTabCaption_END%">
      <my:Help my:HelpText="%SYMBOL_BasicTabHelpText_END%" my:Link="cb9dbf88-0045-4e1e-ae3a-a2449ea7095a.htm#bkmk_grouping_Basic"/>
      <my:Control my:Name="DisplayName" my:TypeName="UocLabel" my:Caption="%SYMBOL_DisplayNameCaption_END%" my:RightsLevel="{Binding Source=rights, Path=DisplayName}">
        <my:Properties>
          <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=DisplayName, Mode=OneWay}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="CreatedDate" my:TypeName="UocDateTimeControl" my:Caption="%SYMBOL_CreatedDateCaption_END%" my:RightsLevel="{Binding Source=rights, Path=CreatedTime}">
        <my:Properties>
          <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=CreatedTime, Mode=OneWay}"/>
          <my:Property my:Name="ReadOnly" my:Value="true"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="CreatedBy" my:TypeName="UocHyperLink" my:Caption="%SYMBOL_CreatedByCaption_END%" my:RightsLevel="{Binding Source=rights, Path=Creator}">
        <my:Properties>
          <my:Property my:Name="ObjectReference" my:Value="{Binding Source=object, Path=Creator, Mode=OneWay}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="Status" my:TypeName="UocLabel" my:Caption="%SYMBOL_StatusCaption_END%" my:RightsLevel="{Binding Source=rights, Path=RequestStatus}">
        <my:Properties>
          <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=RequestStatus.EnumerationString}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="RequestStatusDetail" my:TypeName="UocHtmlSummary" my:Caption="%SYMBOL_RequestStatusDetailCaption_END%" my:Description="{Binding Source=schema, Path=RequestStatusDetail.Description}" my:RightsLevel="{Binding Source=rights, Path=RequestStatusDetail}">
        <my:Properties>
          <my:Property my:Name="ModificationsXml" my:Value="{Binding Source=requestStatus, Path=DeltaXml , Mode=OneWay}"/>
          <my:Property my:Name="TransformXsl" my:Value="{Binding Source=RequestStatusTransformXsl, Path=/, Mode=OneWay}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="ApprovalList" my:TypeName="UocListView" my:Caption="%SYMBOL_ApprovalListCaption_END%" my:Description="%SYMBOL_ApprovalListDescription_END%">
        <my:Buttons>
          <my:Button my:Name="ApproveButton" my:Caption="%SYMBOL_ApprovalListApproveButtonCaption_END%" my:Hint="%SYMBOL_ApprovalListApproveButtonHint_END%" my:ImageUrl="/_layouts/images/MSILM2/approve.png" my:ClickBehavior="ModalDialog" my:EnableMode="OneOrMore"  my:RedirectUrl="../Requests/ApproveRequests.aspx"/>
          <my:Button my:Name="RejectButton" my:Caption="%SYMBOL_ApprovalListRejectButtonCaption_END%" my:Hint="%SYMBOL_ApprovalListRejectButtonHint_END%" my:ImageUrl="/_layouts/images/MSILM2/reject.png" my:ClickBehavior="ModalDialog" my:EnableMode="OneOrMore" my:RedirectUrl="../Requests/RejectRequests.aspx"/>
        </my:Buttons>
        <my:Properties>
          <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,Description,ApprovalStatus,ApprovalThreshold,ApprovalDuration"/>
          <my:Property my:Name="ListFilter" my:Value="/Approval[Request='%ObjectID%']"/>
          <my:Property my:Name="PageSize" my:Value="5"/>
          <my:Property my:Name="EmptyResultText" my:Value="%SYMBOL_ApprovalListEmptyResultText_END%"/>
          <my:Property my:Name="ShowPreview" my:Value="false"/>
          <my:Property my:Name="ShowSearchControl" my:Value="false"/>
          <my:Property my:Name="ButtonHeight" my:Value="40"/>
          <my:Property my:Name="ButtonWidth" my:Value="80"/>
          <my:Property my:Name="ItemClickBehavior" my:Value="ModelessDialog"/>
          <my:Property my:Name="ResultObjectType" my:Value="Approval"/>
        </my:Properties>
        <my:Events>
          <my:Event my:Name="ListViewBound" my:Handler="OnApprovalListViewBound"/>
        </my:Events>
      </my:Control>

    </my:Grouping>

    <my:Grouping my:Name="DetailedContent" my:Caption="%SYMBOL_DetailedContentTabCaption_END%">
      <my:Help my:HelpText="%SYMBOL_DetailedContentTabHelpText_END%" my:Link="cb9dbf88-0045-4e1e-ae3a-a2449ea7095a.htm#bkmk_grouping_DetailedContent"/>
      <my:Control my:Name="Operation" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=Operation.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=Operation}">
        <my:Properties>
          <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=Operation.EnumerationString}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="TargetObjectType" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=TargetObjectType.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=TargetObjectType}">
        <my:Properties>
          <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=TargetObjectType, Mode=OneWay}"/>
        </my:Properties>
      </my:Control>

      <my:Control my:Name="SummaryControl" my:TypeName="UocHtmlSummary" my:Caption="%SYMBOL_RequestContentCaption_END%" my:Description="%SYMBOL_RequestContentDescription_END%" my:ExpandArea="true">
        <my:Properties>
          <my:Property my:Name="ModificationsXml" my:Value="{Binding Source=requestDetails, Path=DeltaXml , Mode=OneWay}"/>
          <my:Property my:Name="TransformXsl" my:Value="{Binding Source=RequestDetailTransformXsl, Path=/, Mode=OneWay}"/>
        </my:Properties>
      </my:Control>

    </my:Grouping>

    <my:Grouping my:Name="Policy" my:Caption="%SYMBOL_PolicyTabCaption_END%">
      <my:Help my:HelpText="%SYMBOL_PolicyTabHelpText_END%" my:Link="cb9dbf88-0045-4e1e-ae3a-a2449ea7095a.htm#bkmk_grouping_Policy"/>
      <my:Control my:Name="PolicyList" my:TypeName="UocListView" my:Caption="%SYMBOL_PolicyListCaption_END%" my:Description="%SYMBOL_PolicyListHint_END%" my:ExpandArea="true" my:RightsLevel="{Binding Source=rights, Path=ManagementPolicy}">
        <my:Properties>
          <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,GrantRight,AuthenticationWorkflowDefinition,AuthorizationWorkflowDefinition,ActionWorkflowDefinition"/>
          <my:Property my:Name="UsageKeywords" my:Value="ManagementPolicyRule"/>
          <my:Property my:Name="ResultObjectType" my:Value="ManagementPolicyRule"/>
          <my:Property my:Name="TargetAttribute" my:Value="ManagementPolicy"/>
          <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=ManagementPolicy, Mode=OneWay}"/>
          <my:Property my:Name="EmptyResultText" my:Value=""/>
          <my:Property my:Name="PageSize" my:Value="10"/>
          <my:Property my:Name="ShowActionBar" my:Value="false"/>
          <my:Property my:Name="ShowPreview" my:Value="false"/>
          <my:Property my:Name="ShowSearchControl" my:Value="false"/>
          <my:Property my:Name="ShowTitleBar" my:Value="true"/>
          <my:Property my:Name="EnableSelection" my:Value="false"/>
          <my:Property my:Name="SingleSelection" my:Value="false"/>
          <my:Property my:Name="ItemClickBehavior" my:Value="ModelessDialog"/>
          <my:Property my:Name="ReadOnly" my:Value="true"/>
          <my:Property my:Name="ListViewItemHandler" my:Value="PolicyItemHandler"/>
        </my:Properties>
      </my:Control>
    </my:Grouping>

  </my:Panel>

</my:ObjectControlConfiguration>