Microsoft Office Tutorials and References
In Depth Information
Toolbar (Quick Access Toolbar)
Performing a range of actions on the 2007 Microsoft Office Fluent User Interface,
such as customizing the Quick Access Toolbar, requires only a few lines of XML and
programming code. The 2007 Microsoft Office Fluent UI replaces the current system
of layered menus, toolbars, and Task Panes with a simpler system that is optimized
for competence and discoverability. We can add components to the Office Fluent
Ribbon by using XML markup elements, and we can set the properties of these
components by using attributes. We can assign functionality to the components by
using any programming language supported by Microsoft Visual Studio 2008, such
as Microsoft Visual C#, and Microsoft Visual Basic.
From within VSTO 2008, there are two possible ways to customize the Office Fluent
UI Quick Access Toolbar. One way is modify an Office Open XML format file created
by one of the Microsoft Office applications that support the Office Fluent UI.
Another way is to use an add-in. The Office Fluent UI has been built by Microsoft so
that XML is capable of providing a hierarchical and declarative model for the user
interface. You add controls to QAT by using XML elements to indicate the type
of component.
Every Office developer must understand that when customizing the QAT,
it has to be started from scratch. We must set the startFromScratch
attribute to true :
<ribbon startFromScratch="true">
The XML markup for QAT document controls is provided here:
<customUI xmlns="http://schemas.microsoft.com/Office/2006/
01/customui" onLoad="Ribbon_Load">
<ribbon>
<qat>
<sharedControls>
<button idMso="Copy" />
<button idMso="Paste" />
</sharedControls>
</qat>
</ribbon>
</customUI>
 
Search JabSto ::




Custom Search