DropDownGallery 요소

갤러리 기반 메뉴가 있는 드롭다운 갤러리 컨트롤을 나타냅니다.

사용량

<DropDownGallery
  ApplicationModes = "xs:string"
  CommandName = "xs:positiveInteger or xs:string"
  HasLargeItems = "Boolean"
  ItemHeight = "xs:integer"
  ItemWidth = "xs:integer"
  TextPosition = "TextPositionType"
  Type = "xs:string">
  child elements
</DropDownGallery>

특성

attribute 유형 필수 Description
ApplicationModes
xs:string
No
MenuGroup이 부모 요소인 경우에만 유효합니다.

(xs:string)
0에서 31 사이의 쉼표로 구분된 정수 목록을 포함하는 문자열입니다.
공백이 유효하고 무시됩니다.
최대 길이: 250자.
CommandName
xs:positiveInteger 또는 xs:string
No
요소를 Command와 연결합니다.

(xs:positiveInteger 또는 xs:string)
문자열, 2에서 59999 사이의 정수 값( 포함) 또는 0x2 0xea5f 사이의 16진수 값(포함)입니다.
값은 리본 XML 문서 내에서 고유해야 합니다.
최대 길이: 100자.
HasLargeItems
부울
No
명령의 크고 작은 이미지 리소스가 갤러리 컨트롤에 표시되는지 여부를 결정합니다.

참고:
Type 특성의 값이 와 같은 Command갤러리에만 적용됩니다.


다음 값 중 하나로 제한됩니다(0과 1은 유효하지 않음).

(true)
기본값
(false)
ItemHeight
xs:integer
No
(xs:integer)
기본값은 -1입니다.
ItemWidth
xs:integer
No
(xs:integer)
기본값은 -1입니다.
TextPosition
TextPositionType
No
다음 값 중 하나로 제한됨:

(아래쪽)
(숨기기)
(왼쪽)
(겹침)
(오른쪽)
(위쪽)
형식
xs:string
No
다음 값 중 하나로 제한됨:

(항목)
(명령)

자식 요소

요소 Description
Button
한 번 이상 발생할 수 있음

확인란
한 번 이상 발생할 수 있음

DropDownGallery.MenuGroups
정확히 한 번 발생해야 합니다.

DropDownGallery.MenuLayout
최대 한 번 발생할 수 있습니다.

SplitButton
한 번 이상 발생할 수 있음

ToggleButton
한 번 이상 발생할 수 있음

부모 요소

요소 Description
ControlGroup
그룹
MenuGroup
ApplicationMenu에 포함된 경우 이 요소는 첫 번째 수준에서만 지원되며 자식 요소가 없어야 합니다.

QuickAccessToolbar.ApplicationDefaults
참고:
Windows 8 이상.



SplitButton

설명

선택 사항입니다.

ControlGroup, DropDownButton, Group, MenuGroup 또는 SplitButton 요소에 대해 한 번 이상 발생할 수 있습니다.

DropDownGallery애플리케이션 모드를 지원합니다.

다음 스크린샷에서는 Windows 7용 Microsoft 그림판 리본 드롭다운 갤러리 컨트롤을 보여 줍니다.

Windows 7용 Microsoft 페인트의 드롭다운 갤러리 컨트롤 스크린샷

예제

다음 예제에서는 DropDownGallery의 기본 태그를 보여 줍니다.

이 코드 섹션에서는 DropDownGallery 요소의 부모 컨테이너 역할을 하는 연결된 Group 과 함께 DropDownGallery 명령 선언을 보여 줍니다.

<!-- DropDownGallery -->
<Command Name="cmdDropDownGalleryGroup"
         Symbol="cmdDropDownGalleryGroup"
         Comment="DropDownGallery Group"
         LabelTitle="DropDownGallery"/>
<Command Name="cmdDropDownGallery"
         Symbol="cmdDropDownGallery"
         Comment="DropDownGallery"
         LabelTitle="DropDownGallery"/>

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

<!-- DropDownGallery -->
<Group CommandName="cmdDropDownGalleryGroup">
  <DropDownGallery CommandName="cmdDropDownGallery"
                   TextPosition="Hide"
                   Type="Commands"
                   ItemHeight="32"
                   ItemWidth="32">
    <DropDownGallery.MenuLayout>
      <FlowMenuLayout Rows="2"
                      Columns="3"
                      Gripper="None"/>
    </DropDownGallery.MenuLayout>
    <DropDownGallery.MenuGroups>
      <MenuGroup>
        <Button CommandName="cmdButton1"></Button>
        <Button CommandName="cmdButton2"></Button>
       </MenuGroup>
       <MenuGroup>
        <Button CommandName="cmdButton3"></Button>
      </MenuGroup>
    </DropDownGallery.MenuGroups>
  </DropDownGallery>
</Group>

요소 정보

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

추가 정보

드롭다운 갤러리 컨트롤

갤러리 작업

SetModes

갤러리 샘플