Sie sind hier: Backstage - Button - Control
Backstage - Button - Control
Achtung: Alle hier vorgestellten Eigenschaften funktionieren ausschließlich in Office 2010.
Das button Element unterscheidet sich durch folgende Attribute vom Ribbon Standard Button:
Neu hinzugekommen:
- Attribute: expand, isDefinitive, layout, style
- Callbacks: -
Nicht vorhanden:
- Attribute: description, insertAfterMso, insertBeforeMso, insertAfterQ, insertBeforeQ, size, showLabel, showImage
- Callbacks: getDescription, getShowImage, getShowLabel, getSize
Die dazugehörige XML Ribbon Datei:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <!-- Ribbon XML --> </ribbon> <backstage> <tab id="btab1" label="Label 1. Tab"> <firstColumn> <group id="myGroup" style="normal" label="Form Button"> <bottomItems> <button id="btn1" label="Form Button 1" imageMso="HappyFace"/> <button id="btn2" label="Form Button 2" expand="horizontal" style="normal" /> <button id="btn3" label="Form Button 3" style="borderless"/> <button id="btn4" label="Form Button 4" style="large" imageMso="HappyFace" screentip="Screentip" supertip="Supertip"/> </bottomItems> </group> </firstColumn> </tab> <button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/> </backstage> </customUI>
Attribute: Wie der Standard Ribbon Button, bis auf oben beschriebenen Attribute.
Callbacks: Wie der Standard Ribbon Button, bis auf oben beschriebene Callbacks.
Sie finden dieses Beispiel auch in der Beispieldatenbank "Backstage View".