ApplicationMenu 요소

애플리케이션 메뉴를 나타냅니다.

사용량

<ApplicationMenu
  CommandName = "xs:positiveInteger or xs:string"
>
  child elements
</ApplicationMenu>

특성

attribute Type 필수 Description
CommandName
xs:positiveInteger 또는 xs:string
No
요소를 Command와 연결합니다.

(xs:positiveInteger 또는 xs:string)
문자열, 2에서 59999 사이의 정수 값( 포함) 또는 0x2 및 0xea5f 사이의 16진수 값(포함)입니다.
값은 리본 XML 문서 내에서 고유해야 합니다.
최대 길이: 100자.

자식 요소

요소 Description
ApplicationMenu.RecentItems
최대 한 번 발생할 수 있습니다.

MenuGroup
한 번 이상 발생할 수 있습니다.

부모 요소

요소
Ribbon.ApplicationMenu

설명

필수 사항입니다.

Ribbon.ApplicationMenu에 대해 정확히 한 번 발생해야 합니다.

ApplicationMenu 요소의 자식 요소는 지정된 순서로 발생해야 합니다.

  1. ApplicationMenu.RecentItems
  2. MenuGroup

예제

다음 예제에서는 애플리케이션 메뉴의 기본 태그를 보여 줍니다.

이 코드 섹션에서는 ApplicationMenu 명령 선언을 보여 줍니다.

<!-- Command declarations for the Application Menu. -->
<Command Name="cmdFileMenu"
         Symbol="ID_FILE_MENU"
         Id="25000" />
<!-- Command declaration for most recently used items. -->
<Command Name="cmdMRUItems"
         Symbol="ID_FILE_MRUITEMS"
         Id="25050"/>
<!-- Command declarations for Application Menu items. -->
<Command Name="cmdNew"
         Symbol="ID_FILE_NEW"
         Comment="New"
         Id="25001"
         LabelTitle="&amp;New"/>
<Command Name="cmdOpen"
         Symbol="ID_FILE_OPEN"
         Comment="Open"
         Id="25002"
         LabelTitle="&amp;&amp;Open"/>
<Command>
  <Command.Name>cmdSave</Command.Name>
  <Command.Symbol>ID_FILE_SAVE</Command.Symbol>
  <Command.Comment>Save</Command.Comment>
  <Command.Id>25003</Command.Id>
  <Command.LabelTitle>
    <String>
      <String.Content>Label for Save</String.Content>
      <String.Id>59999</String.Id>
      <String.Symbol>strSave</String.Symbol>
    </String>
  </Command.LabelTitle>
  <Command.TooltipTitle>Tooltip title with &amp;&amp; for Save Command</Command.TooltipTitle>
  <Command.TooltipDescription>Tooltip description for Save Command.</Command.TooltipDescription>
  <Command.Keytip>s1</Command.Keytip>
</Command>
<Command Name="cmdPrint"
         Symbol="ID_FILE_PRINT"
         Comment="Save"
         Id="25004"
         LabelTitle="Print" />
<Command Name="cmdExit"
         Symbol="ID_FILE_EXIT"
         Comment="Exit"
         Id="25005"
         LabelTitle="Exit" />

이 코드 섹션에서는 ApplicationMenu 컨트롤 선언을 보여 줍니다.

<!-- Control declarations for Application Menu items. -->
<Ribbon.ApplicationMenu>
  <ApplicationMenu CommandName="cmdFileMenu">
    <!-- Most recently used items collection. -->
    <ApplicationMenu.RecentItems>
      <RecentItems CommandName="cmdMRUItems"/>
    </ApplicationMenu.RecentItems>
    <!-- Menu items collection. -->
    <MenuGroup>
      <Button CommandName="cmdNew" />
      <Button CommandName="cmdOpen" />
      <Button CommandName="cmdSave" />
    </MenuGroup>
    <MenuGroup>
      <Button CommandName="cmdPrint" />
      <Button CommandName="cmdExit" />
    </MenuGroup>
  </ApplicationMenu>
</Ribbon.ApplicationMenu>

요소 정보

  • 지원되는 최소 시스템: Windows 7
  • 비워 둘 수 있음: 아니요

추가 정보

애플리케이션 메뉴 컨트롤