Fun with Silverlight and SharePoint 2010 Ribbon Control – Part 2 – An In Depth Look At The Ribbon Control

3 בפברואר 2011

Welcome to part 2 of the "Fun with Silverlight and SharePoint 2010 Ribbon Control" series. If you haven't read part 1 go ahead and click here. So how do we deal with this ribbon? Well, by using the powers of XML! Let's take a closer look on how the OOTB ribbon is constructed: If we open the ribbon definitions file - cmdui.xml (which can be found at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML) we will see the following structure:<?xml version="1.0" encoding="utf-8"?><CommandUI xmlns=""><Ribbon Id="Ribbon" ...>    <Tabs Id="Ribbon.Tabs">        <Tab Id="Ribbon.BDCAdmin" ...>            <Scaling Id="Ribbon.BDCAdmin.Scaling"></Scaling>            <Groups Id="Ribbon.BDCAdmin.Groups">                <Group Id="" ...>                    <Controls Id="">                        <Button Id="" .../>                    </Controls>                </Group>            </Groups>       ...
אין תגובות