VerticalMenuLayout 元素

代表資源庫中專案的垂直版面配置。

使用方式

<VerticalMenuLayout
  Rows = "xs:integer"
  IsMultipleHighlightingEnabled = "xs:boolean"
  Gripper = "xs:string"/>

屬性

屬性 類型 必要 描述
片 梭
xs:string

附加至資源庫下拉式清單的大小調整控制碼。
垂直移底夾的螢幕擷取畫面。
限制為下列其中一個值:

(None)
(垂直)
預設值。
IsMultipleHighlightingEnabled
xs:boolean

Windows 8和更新版本
醒目提示清單中所有專案,包括目前的滑鼠停留專案 (,而不是只) 滑鼠移轉專案。 通常用於多個 復原重做 功能。

(true)
(false)
預設值。
資料列
xs:integer

指定要在不捲動的情況下可見的專案資料列數目。

(xs:integer)
任何正整數或負整數。
預設值為 -1 ,指定盡可能顯示多個專案資料列。

子元素

沒有子項目。

父元素

元素
DropDownGallery.MenuLayout
InRibbonGallery.MenuLayout
SplitButtonGallery.MenuLayout

備註

必要。

VerticalMenuLayoutFlowMenuLayout元素必須針對每個DropDownGallery.MenuLayoutInRibbonGallery.MenuLayoutSplitButtonGallery.MenuLayout元素髮生一次。

範例

下列範例示範 VerticalMenuLayout 元素的基本標記。

此程式碼區段會顯示 InRibbonGallery 控制項宣告。

<!-- InRibbonGallery -->
<Group CommandName="cmdInRibbonGalleryGroup" SizeDefinition="OneInRibbonGallery">
  <InRibbonGallery CommandName="cmdInRibbonGallery"
                   MaxColumns="10"
                   MaxColumnsMedium="5"
                   MinColumnsLarge="5"
                   MinColumnsMedium="3"
                   Type="Items">
    <InRibbonGallery.MenuLayout>
      <VerticalMenuLayout Rows="2"
                          Gripper="Vertical"/>
    </InRibbonGallery.MenuLayout>
    <InRibbonGallery.MenuGroups>
      <MenuGroup>
        <Button CommandName="cmdButton1"></Button>
        <Button CommandName="cmdButton2"></Button>
      </MenuGroup>
      <MenuGroup>
        <Button CommandName="cmdButton3"></Button>
      </MenuGroup>
    </InRibbonGallery.MenuGroups>            
  </InRibbonGallery>
</Group>

項目資訊

  • 最低支援系統:Windows 7
  • 可以是空的:是