SizeDefinition 요소

리본 컨트롤의 사용자 지정 레이아웃 템플릿을 나타냅니다.

사용량

<SizeDefinition
  Name = "xs:positiveInteger or xs:string or xs:token">
  child elements
</SizeDefinition>

특성

attribute Type 필수 Description
이름
xs:positiveInteger 또는 xs:string 또는 xs:token
Yes
Ribbon.SizeDefinitions가 부모인 경우, 그렇지 않으면 선택 사항입니다.

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

자식 요소

요소 설명
ControlNameMap
최대 한 번 발생할 수 있습니다.

GroupSizeDefinition
한 번 이상 발생해야 합니다.

부모 요소

요소
그룹
Ribbon.SizeDefinitions

설명

선택 사항입니다.

Group 요소에 대해 최대 한 번 발생할 수 있습니다.

Ribbon.SizeDefinitions 요소에 대해 하나 이상 발생할 수 있습니다.

미리 정의된 리본 프레임워크 레이아웃 템플릿Group 요소의 SizeDefinition 특성으로 지정됩니다.

Tab 요소의 각 Group 요소에 대해 해당 ScalingPolicy.IdealSizes 요소가 선언되지 않은 경우 유효성 검사 오류가 발생합니다.

예제

다음 코드 예제에서는 기본 사용자 지정 템플릿을 보여 줍니다.

<Group CommandName="cmdButtonGroup2">
  <SizeDefinition>
    <ControlNameMap>
      <ControlNameDefinition Name="button1"/>
      <ControlNameDefinition Name="button2"/>
      <ControlNameDefinition Name="button3"/>
      <ControlNameDefinition Name="button4"/>
    </ControlNameMap>
    <GroupSizeDefinition Size="Large">
      <ControlGroup>
        <ControlSizeDefinition ControlName="button1"
                               ImageSize="Large"
                               IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button2"
                               ImageSize="Large"
                               IsLabelVisible="true" />
      </ControlGroup>
      <ColumnBreak ShowSeparator="true"/>
      <ControlGroup>
        <ControlSizeDefinition ControlName="button3"
                               ImageSize="Large"
                              IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button4"
                              ImageSize="Large"
                              IsLabelVisible="true" />
      </ControlGroup>
    </GroupSizeDefinition>
    <GroupSizeDefinition Size="Medium">
      <Row>
        <ControlSizeDefinition ControlName="button1"
                               ImageSize="Small"
                               IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button3"
                               ImageSize="Small"
                               IsLabelVisible="true" />
      </Row>
      <Row>
        <ControlSizeDefinition ControlName="button2"
                               ImageSize="Small"
                               IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button4"
                               ImageSize="Small"
                               IsLabelVisible="true" />
      </Row>
    </GroupSizeDefinition>
    <GroupSizeDefinition Size="Small">
      <Row>
        <ControlSizeDefinition ControlName="button1"
                               ImageSize="Small"
                               IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button3"
                               ImageSize="Small"
                               IsLabelVisible="false" />
      </Row>
      <Row>
        <ControlSizeDefinition ControlName="button2"
                               ImageSize="Small"
                               IsLabelVisible="true" />
        <ControlSizeDefinition ControlName="button4"
                               ImageSize="Small"
                               IsLabelVisible="false" />
      </Row>
    </GroupSizeDefinition>
  </SizeDefinition>
  <Button CommandName="cmdButtonG21"></Button>
  <Button CommandName="cmdButtonG22"></Button>
  <Button CommandName="cmdButtonG23"></Button>
  <Button CommandName="cmdButtonG24"></Button>
</Group>
<Group CommandName="cmdCheckBoxGroup">
  <CheckBox CommandName="cmdCheckBox"></CheckBox>
</Group>
<Group CommandName="cmdToggleButtonGroup"
       SizeDefinition="OneButton">
  <ToggleButton CommandName="cmdToggleButton"></ToggleButton>
</Group>
<Group CommandName="cmdButtonGroup"
       SizeDefinition="ThreeButtons">
  <Button CommandName="cmdButton1"></Button>
  <Button CommandName="cmdButton2"></Button>
  <Button CommandName="cmdButton3"></Button>
</Group>

요소 정보

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

추가 정보

크기 정의 및 크기 조정 정책을 통해 리본 메뉴 사용자 지정