SharePoint 2010新特性Ribbon

 

     相信大家对Office 2007中的Ribbon已经很熟悉了,在SharePoint 2010的页面中,也引入了这种漂亮的界面风格,我们先来看几个截图:
首页中的Ribbon,当我们点击Page标签时:

编辑页面时,如同Wiki一样的编辑风格:

文档库中的Ribbon:

等等,可以说,在SharePoint 2010中,Ribbon无处不在,很多熟悉使用Office 2007的朋友对此一定不会陌生,这也让SharePoint 2010更像是Office产品族的一员。
    向大家介绍一下Ribbon中的几个概念。页面中Ribbon的最顶级元素是Tab (标签?),就像上图中我们看到的Page标签、Library标签等,标签下是一系列的Group (组),如上图中,Library标签下有View Format、Datasheet、Manage Views等等各种组,每一个组包含了一系列的Control (控件),控件是Ribbon的最底层元素,每个控件都对应一个功能,通过它来执行各种的操作。
    下表为能用于Ribbon中的控件 (摘自MSDN,未做翻译,应该很容易理解):
Control Type        Description
Button                        A simple button used to perform an action.
Checkbox                        A check box used to select an option.
Color Picker        A grid used to select a color or style.
Combo Box        A list used to select a value by clicking or typing.
Drop Down        A list used to select a value by clicking.
Flyout Anchor        A button with a down arrow used to open a menu.
Insert Table        A 10-by-10 grid used to specify the dimensions of a table.
Label                        A line of text used to provide information.
Menu                        A container used to show pop-up menus.
Menu Section        A section used to divide a menu. A menu section can have a title and contain controls.
MRU Split Button        A button used to execute a recently used menu action. This control uses the last action chosen from its submenu as the button action.
Spinner                        A control used to insert a value by typing or using the arrow keys to cycle through the values.
Split Button        A control used as both a button and a menu.
Text Box                        A control used to enter text.
Toggle Button        A button used to toggle between an on and off state.

     这篇只向大家介绍一下Ribbon的基本概念,而使用XML和JavaScript可以定制开发Ribbon,关于自定义Ribbon的内容,将在下一篇中向大家介绍。

 

来源:http://www.cnblogs.com/fatwhale/archive/2010/02/25/1673209.html

posted @ 2010-09-15 15:41  绿森林  阅读(314)  评论(0编辑  收藏  举报