5/31/2011

Learning SharePoint 2010 Series - Developing on SharePoint 2010

Learning SharePoint 2010 Series - Developing on SharePoint 2010
Software developers can use the SharePoint 2010 business collaboration platform to build enterprise-class solutions for intranet portals and the web. You can use these ten modules to get started with development for SharePoint 2010 using Visual Studio 2010.
Getting Started Home Page
Module 1: Getting Started: Building Web Parts in SharePoint 2010
Module 2: What Developers Need to Know About SharePoint 2010
Module 3: Building Blocks for Web Part Development in SharePoint 2010
Module 4: Accessing SharePoint 2010 Data and Objects with Server-Side APIs
Module 5: Accessing SharePoint 2010 Data and Objects with Client-Side APIs
Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010
Module 7: Developing Business Processes with SharePoint 2010 Workflows
Module 8: Creating Silverlight User Interfaces for SharePoint 2010 Solutions
Module 9: Sandboxed Solutions for Web Parts in SharePoint 2010
Module 10: Creating Dialog Boxes and Ribbon Controls for SharePoint 2010

5/26/2011

Microsoft Visual Studio vNext Sneak Preview

Microsoft Visual Studio vNext Sneak Preview
Be one of the first to get a sneak peek at the new IDE features planned for the next version of Visual Studio! At this session, see how we’ve improved the Visual Studio developer experience -- streamlining the common tasks, simplifying the environment and allowing you to focus on the code that matters.


Microsoft Visual Studio IDE Futures




Right click “Save as…”

Slides








Download  




How do I download the videos?



  • To download, right click the file type you would like and pick “Save target as…” or “Save link as…”


Why should I download videos from Channel9?



  • It's an easy way to save the videos you like locally.

  • You can save the videos in order to watch them offline.

  • If all you want is to hear the audio, you can download the MP3!


Which version should I choose?



  • If you want to view the video on your PC, XBox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).

  • If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.

  • If you have a Zune, iPhone, or iPod device, choose the MP4 file.

  • If you just want to hear the audio of the video, choose the MP3 file.





5/24/2011

Learn Visual Studio LightSwitch

Learn Visual Studio LightSwitch
Here is a list of useful resources related to Visual Studio LightSwitch.

List of useful resources from MSDN related to LightSwitch.

Create Your First LightSwitch Application
Download the Visual Studio LightSwitch Training Kit


Learn Data Related Topics:

Learn Data Related Topics:


Queries Related Topics:

Deployment Related Topics: 

How do I Videos:

#1 - How Do I: Define My Data in a LightSwitch Application?
#2 - How Do I: Create a Search Screen in a LightSwitch Application?
#3 - How Do I: Create an Edit Details Screen in a LightSwitch Application?
#4 - How Do I: Format Data on a Screen in a LightSwitch Application?
#5 - How Do I: Sort and Filter Data on a Screen in a LightSwitch Application?
#6 - How Do I: Create a Master-Details (One-to-Many) Screen in a LightSwitch Application?
#7 - How Do I: Pass a Parameter into a Screen from the Command Bar in a LightSwitch Application?
#8 - How Do I: Write business rules for validation and calculated fields in a LightSwitch Application?
#9 - How Do I: Create a Screen that can Both Edit and Add Records in a LightSwitch Application?
#10 - How Do I: Create and Control Lookup Lists in a LightSwitch Application?
#11 - How Do I: Set up Security to Control User Access to Parts of a Visual Studio LightSwitch Application?
#12 – How Do I: Deploy a Visual Studio LightSwitch Application?

Learn ASP.NET MVC

Learn ASP.NET MVC
Here is a list of useful resources related to ASP.NET MVC.

Use the following curated curriculum to get started or learn more about ASP.NET MVC. For additional and archived resources, please check these pages - Additional TutorialsAdditional Videos.

1. Getting Started



2. What is MVC?



3. Controllers and Routing



4. Views



5. Models (Data)



6. JavaScript



7. Security



8. Internationalization



9. Dependency Injection



10. Unit Testing



11. Deployment



12. NuGet (Packages)


5/18/2011

SharePoint 2010 Developer Training Course

SharePoint 2010 Developer Training Course
SharePoint 2010 Developer Training Course, recently updated, contains 20 very useful training sessions covering all aspects of developing solutions on SharePoint 2010 platform using Visual Studio 2010 and SharePoint Designer 2010. SharePoint 2010 provides the business collaboration platform for developers to build fast solutions using familiar tools while taking advantage of a rich set of out of the box features. Visual Studio 2010 and SharePoint Designer 2010 make developers more creative and Visual Studio Team Foundation Server delivers support for application lifecycle management.

If you are preparing for Microsoft certification, whether for 70-573 TS or 70-576 PRO, the freely available SharePoint 2010 Developer Training Course is a must.

The course includes demos, presentations, labs and instructor videos on the following topics:

Getting Started with SharePoint 2010

SharePoint 2010 Developer Roadmap

Visual Studio 2010 Tools for SharePoint 2010

UI Enhancements

Lists and Schemas

LINQ to SharePoint

Client Object Model

Workflow

Services Architecture

Accessing External Data

Enterprise Content Management

Extending Search

PerformancePoint Services

Sandboxed Solutions

SharePoint 2010 Security

Business Intelligence

SharePoint 2010 Best Practices

Building a SharePoint 2010 Virtual Machine

Upgrading Custom Solutions

Upgrading VSeWss Solutions to SharePoint 2010

Source : http://www.topsharepoint.com/sharepoint-2010-developer-training-course

SharePoint 2010: Getting Started with Development on SharePoint 2010 Hands-on Labs in C# and Visual Basic

SharePoint 2010: Getting Started with Development on SharePoint 2010
Hands-on Labs in C# and Visual Basic

Overview






Use these 10 hands-on lab manuals for SharePoint 2010 to get started learning SharePoint 2010 development. Each lab is available in C# and Visual Basic.HOL01 - Developing a Visual Web Part in Visual Studio 2010.

This hands-on lab introduces the Visual Studio 2010 SharePoint development environment. It shows how to build a Visual Web Part using LINQ to SharePoint, and how to connect one Web Part to another Web Part on the page.

___________________




HOL1_Manual_cs.pdf




1.7MB



___________________




HOL1_Manual_cs.xps

2.1MB



___________________




HOL1_Manual_VB.pdf

1.7MB




___________________

HOL1_Manual_VB.xps

2.2MB



___________________




HOL02 - Developing a List Definition and Event Receiver in Visual Studio 2010.

This hands-on lab walks you through building a list definition for SharePoint 2010 in Visual Studio 2010. It also shows how to build an event receiver for the list in Visual Studio 2010 and deploy it to SharePoint. After the list and event receiver are deployed, you can use the developer dashboard to evaluate the performance of the event receiver.

___________________




HOL2_Manual_CS.pdf

1.3MB



___________________




HOL2_Manual_CS.xps

1.6MB



___________________




HOL2_Manual_VB.pdf

1.3MB



___________________




HOL2_Manual_VB.xps

1.6MB



___________________





HOL03 - Developing Advanced Web Parts for SharePoint 2010 with Visual Studio 2010



This hands-on lab shows how to build a Web Part using several SharePoint-specific controls in Visual Studio 2010.

Investigate advanced built-in Web Parts, including the Data View Web Part.



___________________
HOL3_Manual_CS.pdf



1.2MB



___________________




HOL3_Manual_CS.xps

1.4MB




___________________

HOL3_Manual_VB.pdf

1.3MB




___________________

HOL3_Manual_VB.xps

1.6MB




___________________

HOL04 - Developing with LINQ to SharePoint in Visual Studio 2010


This hands-on lab explores a variety of LINQ queries on SharePoint 2010, going into more depth than the introductory hands-on lab. It also walks you through an exercise of creating a custom content type in Visual Studio 2010.

___________________



 HOL4_Manual_CS.pdf




___________________

HOL4_Manual_CS.xps

1.9MB




___________________

HOL4_Manual_VB.pdf

1.6MB




___________________

HOL4_Manual_VB.xps

2.0MB




___________________

HOL05 - Developing for SharePoint 2010 with the Client OM and REST in Visual Studio 2010


This hands-on lab introduces the Client object model for use in calling SharePoint 2010 APIs from a client machine. It also shows the use of ADO.NET Data Services to call REST services in SharePoint 2010.



___________________

HOL5_Manual_CS.pdf




___________________

HOL5_Manual_CS.xps

1.3MB




___________________

HOL5_Manual_VB.pdf

1.1MB




___________________

HOL5_Manual_VB.xps

1.3MB




___________________

HOL06 - Developing a BCS External Content Type with Visual Studio 2010


This hands-on lab walks you through building an external content type for Business Connectivity Services using Visual Studio 2010. It also builds a form for Microsoft Outlook and shows the data being edited offline in Outlook.



___________________

 HOL6_Manual_CS.pdf




___________________

HOL6_Manual_CS.xps

2.0MB




___________________

HOL6_Manual_VB.pdf

1.6MB




___________________

HOL6_Manual_VB.xps

2.0MB




___________________

HOL07 - Developing a SharePoint 2010 Workflow with Initiation Form in Visual Studio 2010
This hands-on lab walks you through building a workflow in Visual Studio 2010 for SharePoint 2010. You add an initiation form to the workflow and use an external data exchange activity in the workflow.



___________________

HOL7_Manual_CS.pdf

2.2MB




___________________

HOL7_Manual_CS.xps

2.7MB




___________________

HOL7_Manual_VB.pdf

2.2MB




___________________

HOL7_Manual_VB.xps

2.7MB




___________________

HOL08 - Developing SharePoint 2010 User Interface with Silverlight in Visual Studio 2010

This hands-on lab walks you through building Microsoft Silverlight applications for use in SharePoint 2010. You will access SharePoint 2010 data in Silverlight using the Client object model.

___________________



HOL8_Manual_CS.pdf

1.1MB




___________________

HOL8_Manual_CS.xps

1.4MB




___________________

HOL8_Manual_VB.pdf

1.0MB




___________________

HOL8_Manual_VB.xps

1.3MB




___________________

HOL09 - Developing SharePoint 2010 Sandboxed Solutions in Visual Studio 2010

This hands-on lab walks you through building a Sandboxed Solution Web Part for SharePoint 2010. It will also add code to the Web Part that overloads the limits placed by the sandboxed solution, and you will review how the solution is shut down.

___________________



 HOL9_Manual_CS.pdf




___________________

HOL9_Manual_CS.xps

1.4MB




___________________

HOL9_Manual_VB.pdf

1.1MB




___________________

HOL9_Manual_VB.xps

1.4MB



___________________

HOL10 - Developing SharePoint 2010 User Interface Ribbon and Dialog Customizations

This hands-on lab walks you through adding a custom action to the SharePoint 2010 ribbon, and creating a Web Part that uses the Dialog Framework.






___________________

HOL10_Manual_CS.pdf





___________________

HOL10_Manual_CS.xps

1.6MB




___________________

HOL10_Manual_VB.pdf

1.4MB




___________________

HOL10_Manual_VB.xps

1.6MB


___________________



SharePoint2010_Developer_HandsOnLabs_April2010.zip

28.6MB







___________________


Microsoft SharePoint Server 2010 Resources For IT Pro, Developer, And End Users

Microsoft SharePoint Server 2010 Resources For IT Pro, Developer, And
End Users
SharePoint Server Online Virtual Labs (Operations and IT Pro’s):

SharePoint Server Developer Resources:

SharePoint 2010 Enterprise Search:

SharePoint Server Virtual Image Download:

End User SharePoint Training:

Sharepoint-2010

Video: Custom Theming A SharePoint 2010 Site Using PowerPoint 2010

Video: Custom Theming A SharePoint 2010 Site Using PowerPoint 2010
[vimeo http://www.vimeo.com/7726609 w=400&h=300]

Custom Theming A SharePoint 2010 Site Using PowerPoint from Michael Gannotti on Vimeo.

Trouble seeing the embedded blog above or want to download it? View it directly/download here on Vimeo (downloads require a log-in to Vimeo)

5/11/2011

Customizing the Status Bar and the Notification Area, Programming the Dialog Framework : SharePoint 2010

Customizing the Status Bar and the Notification Area, Programming the
Dialog Framework : SharePoint 2010

Steps:


1. Create A New Empty SharePoint 2010 Project.

2. Add A New Item, Select An Application Page.

3. Replace The Code In Your ApplicationPage1.aspx File From Below The Page Directive With The Following.

Code :
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationPage1.aspx.cs" Inherits="SharePointProject1.Layouts.SharePointProject1.ApplicationPage1" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<script type="text/javascript">

// Customizing the Status Bar
var sid;
var color = "";

function AppendStatusMethod()
{
SP.UI.Status.appendStatus(sid, "Appended:", " <HTML> <i>My Status Append to " + sid + " using appendStatus </i></HTML> ");
}

function UpdateStatus()
{
SP.UI.Status.updateStatus(sid, "Updated: HTML updated for " + sid + " using updateStatus");
}

function RemoveStatus()
{
SP.UI.Status.removeStatus(sid);
}

function RemoveAllStatus()
{
SP.UI.Status.removeAllStatus(true);
}

function SetStatusColor()
{
if (color=="")
{
color="red";
}
else if (color=="red")
{
color="green";
}
else if (color=="green")
{
color="yellow";
}
else if (color=="yellow")
{
color="blue";
}
else if (color=="blue")
{
color="red";
}

SP.UI.Status.setStatusPriColor(sid, color);
}

function AppendStatus()
{
SP.UI.Status.addStatus("Appended:", " <HTML> <i>My Status Message Append using atBeginning </i></HTML> ", false);
}

function CreateStatus()
{
return SP.UI.Status.addStatus(SP.Utilities.HttpUtility.htmlEncode("My Status Bar Title"), " <HTML><i> My Status Message</i> </HTML> ", true);
}

// Customizing the Notification Area
var notifyid;
function CreateNotification()
{
notifyid = SP.UI.Notify.addNotification(" My HTML Notification ", true, "My Tooltip", "HelloWorld");
alert("Notification id: " + notifyid);
}
function RemoveNotification()
{
SP.UI.Notify.removeNotification(notifyid);
}

// Programming the Dialog Framework
function OpenDialog()
{
var options = SP.UI.$create_DialogOptions();

options.url = SP.Utilities.Utility.getLayoutsPageUrl('customdialog.htm');
options.url += "?Source=" + document.URL;
alert('Navigating to dialog at: ' + options.url);
options.width = 400;
options.height = 300;
options.title = "My Custom Dialog";

options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);
SP.UI.ModalDialog.showModalDialog(options);
}

function CloseCallback(result, target)
{
alert('Result from dialog was: ' + result);

if (result === SP.UI.DialogResult.OK)
{
alert('You clicked OK');
}
else if (result == SP.UI.DialogResult.cancel)
{
alert('You clicked Cancel');
}

alert('Target is: ' + target);
}

</script>

<!-- Customizing the Status Bar --> <br /><br />
<input onclick="sid=CreateStatus();alert(sid);" type="button" value="Create Status"/> <br/>
<input onclick="AppendStatus()" type="button" value="Append Status using atBeginning"/> <br/>
<input onclick="AppendStatusMethod()" type="button" value="Append Status using appendStatus"/> <br/>
<input onclick="UpdateStatus()" type="button" value="Update Status using updateStatus"/> <br/>
<input onclick="SetStatusColor()" type="button" value="Cycle Colors"/> <br/>
<input onclick="RemoveStatus()" type="button" value="Remove Single Status"/> <br/>
<input onclick="RemoveAllStatus()" type="button" value="Remove All Status"/> <br/>

<!-- Customizing the Notification Area --> <br /><br />
<input onclick="CreateNotification()" type="button" value="Create Notification" /> <br/>
<input onclick="RemoveNotification()" type="button" value="Remove Notification" /> <br/>

<!-- Programming the Dialog Framework --> <br /><br />
<input onclick="OpenDialog()" type="button" value="Show Dialog"/> <br/>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Application Page
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
My Application Page
</asp:Content>

4. Check The Status Messages In The JavaScript And Remove Any Break Lines.

5. Deploy Your Project.

6. view the page by using /_layout/SharePointProject1/ApplicationPage1.aspx

Thanks and Have Fun!!!!!

5/09/2011

Writing a Page Component : SharePoint 2010

Writing a Page Component : SharePoint 2010
Code :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<CustomAction

Id="SharedDocAction"

RegistrationType="List"

RegistrationId="101"

Location="CommandUI.Ribbon.ListView">

<CommandUIExtension>

<CommandUIDefinitions>

<CommandUIDefinition

Location="Ribbon.Documents.New.Controls._children">

<Button

Id="CustomContextualButton"

Alt="MyDocumentsNew Alt"

Command="MyDocumentsNewButton"

LabelText="ScriptBlock Button"

ToolTipTitle="Tooltip Title"

Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png?vk=4536" Image16by16Top="-80" Image16by16Left="0"

Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png?vk=4536" Image32by32Top="-96" Image32by32Left="-64"

ToolTipDescription="Tooltip Description"

TemplateAlias="o1"/>

</CommandUIDefinition>

</CommandUIDefinitions>

<CommandUIHandlers>

<CommandUIHandler

Command="MyDocumentsNewButton"

CommandAction="javascript:

ExecuteOrDelayUntilScriptLoaded(_registerMyScriptBlockPageComponent, 'sp.ribbon.js');

function _registerMyScriptBlockPageComponent()

{

Type.registerNamespace('MyScriptBlock');

MyScriptBlock.MyScriptBlockPageComponent = function MyScriptBlockPageComponent_Ctr() {

MyScriptBlock.MyScriptBlockPageComponent.initializeBase(this);

};

MyScriptBlock.MyScriptBlockPageComponent.prototype = {

init: function MyScriptBlockPageComponent_init() {

},

_globalCommands: null,

buildGlobalCommands: function MyScriptBlockPageComponent_buildGlobalCommands() {

if (SP.ScriptUtility.isNullOrUndefined(this._globalCommands)) {

this._globalCommands = [];

this._globalCommands[this._globalCommands.length] = 'DocumentTab';

this._globalCommands[this._globalCommands.length] = 'DocumentNewGroup';

this._globalCommands[this._globalCommands.length] = 'MyDocumentsNewButton';

}

return this._globalCommands;

},

getGlobalCommands: function MyScriptBlockPageComponent_getGlobalCommands() {

return this.buildGlobalCommands();

},

canHandleCommand: function MyScriptBlockPageComponent_canHandleCommand(commandId) {

var items = SP.ListOperation.Selection.getSelectedItems();

if (SP.ScriptUtility.isNullOrUndefined(items))

return false;

if (0 == items.length)

return false;

if (commandId === 'DocumentNewTab'){

return true;

}

if (commandId === 'DocumentNewGroup'){

return true;

}

if (commandId === 'MyDocumentsNewButton'){

return true;

}

return false;

},

handleCommand: function MyScriptBlockPageComponent_handleCommand(commandId, properties, sequence) {

alert('You hit my button!');

return true;

}

}

MyScriptBlock.MyScriptBlockPageComponent.get_instance = function MyScriptBlockPageComponent_get_instance() {

if (SP.ScriptUtility.isNullOrUndefined(MyScriptBlock.MyScriptBlockPageComponent._singletonPageComponent)) {

MyScriptBlock.MyScriptBlockPageComponent._singletonPageComponent = new MyScriptBlock.MyScriptBlockPageComponent();

}

return MyScriptBlock.MyScriptBlockPageComponent._singletonPageComponent;

}

MyScriptBlock.MyScriptBlockPageComponent.registerWithPageManager = function MyScriptBlockPageComponent_registerWithPageManager() {

SP.Ribbon.PageManager.get_instance().addPageComponent(MyScriptBlock.MyScriptBlockPageComponent.get_instance());

}

MyScriptBlock.MyScriptBlockPageComponent.unregisterWithPageManager = function MyScriptBlockPageComponent_unregisterWithPageManager() {

if (false == SP.ScriptUtility.isNullOrUndefined(MyScriptBlock.MyScriptBlockPageComponent._singletonPageComponent)) {

SP.Ribbon.PageManager.get_instance().removePageComponent(MyScriptBlock.MyScriptBlockPageComponent.get_instance());

}

}

MyScriptBlock.MyScriptBlockPageComponent.registerClass('MyScriptBlock.MyScriptBlockPageComponent', CUI.Page.PageComponent);

MyScriptBlock.MyScriptBlockPageComponent.registerWithPageManager();

}

" />

</CommandUIHandlers>

</CommandUIExtension>

</CustomAction>

</Elements>

5/01/2011

Adding a Control on a Custom Tab to the Server Ribbon : SharePoint 2010

Adding a Control on a Custom Tab to the Server Ribbon : SharePoint 2010
Adding a Control on a Custom Tab to the Server Ribbon : SharePoint 2010

Code :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<CustomAction
Id="MyCustomRibbonTab"
Location="CommandUI.Ribbon.ListView"
RegistrationId="101"
RegistrationType="List">

<CommandUIExtension>

<CommandUIDefinitions>

<CommandUIDefinition
Location="Ribbon.Tabs._children">

<Tab
Id="Ribbon.CustomTabExample"
Title="My Custom Tab"
Description="This holds my custom commands!"
Sequence="501">

<Scaling
Id="Ribbon.CustomTabExample.Scaling">

<MaxSize
Id="Ribbon.CustomTabExample.MaxSize"
GroupId="Ribbon.CustomTabExample.CustomGroupExample"
Size="OneLargeTwoMedium"/>

<Scale
Id="Ribbon.CustomTabExample.Scaling.CustomTabScaling"
GroupId="Ribbon.CustomTabExample.CustomGroupExample"
Size="OneLargeTwoMedium" />

</Scaling>

<Groups Id="Ribbon.CustomTabExample.Groups">

<Group
Id="Ribbon.CustomTabExample.CustomGroupExample"
Description="This is a custom group!"
Title="Custom Group"
Sequence="52"
Template="Ribbon.Templates.CustomTemplateExample">

<Controls Id="Ribbon.CustomTabExample.CustomGroupExample.Controls">

<Button
Id="Ribbon.CustomTabExample.CustomGroupExample.HelloWorld"
Command="CustomTabExample.HelloWorldCommand"
Sequence="15"
Description="Says hello to the World!"
LabelText="Hello, World!"
TemplateAlias="cust1"/>

</Controls>

</Group>

</Groups>

</Tab>

</CommandUIDefinition>

<CommandUIDefinition Location="Ribbon.Templates._children">

<GroupTemplate Id="Ribbon.Templates.CustomTemplateExample">

<Layout
Title="OneLargeTwoMedium"
LayoutTitle="OneLargeTwoMedium">

<Section Alignment="Top" Type="OneRow">

<Row>

<ControlRef DisplayMode="Large" TemplateAlias="cust1" />

</Row>

</Section>


</Layout>

</GroupTemplate>

</CommandUIDefinition>

</CommandUIDefinitions>

<CommandUIHandlers>

<CommandUIHandler
Command="CustomTabExample.HelloWorldCommand"
CommandAction="javascript:alert('Hello, world!');" />

</CommandUIHandlers>

</CommandUIExtension>

</CustomAction>

</Elements>

Adding a Blank Tab to the Server Ribbon : SharePoint 2010

Adding a Blank Tab to the Server Ribbon : SharePoint 2010
Adding a Blank Tab to the Server Ribbon : SharePoint 2010

Code :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<CustomAction
Id="MyCustomRibbonTab"
Location="CommandUI.Ribbon.ListView"
RegistrationId="101"
RegistrationType="List">

<CommandUIExtension>

<CommandUIDefinitions>

<CommandUIDefinition
Location="Ribbon.Tabs._children">

<Tab
Id="Ribbon.CustomTabExample"
Title="My Custom Tab"
Description="This holds my custom commands!"
Sequence="501">

<Scaling
Id="Ribbon.CustomTabExample.Scaling">

</Scaling>

<Groups Id="Ribbon.CustomTabExample.Groups">

</Groups>

</Tab>

</CommandUIDefinition>

</CommandUIDefinitions>

<CommandUIHandlers>

<CommandUIHandler
Command="CustomTabExample.HelloWorldCommand"
CommandAction="javascript:alert('Hello, world!');" />

</CommandUIHandlers>

</CommandUIExtension>

</CustomAction>

</Elements>

Declarative Customization of the Server Ribbon - MSDN

Declarative Customization of the Server Ribbon - MSDN
This is my personal links to refer the MSDN example.

This section provides programming tasks that introduce you to customizing the Server ribbon using ribbon XML and a Feature in Microsoft SharePoint Foundation 2010.

Walkthrough: Adding a Tab to the Server Ribbon

Walkthrough: Adding a Group to the Server Ribbon

Walkthrough: Adding a Button to the Server Ribbon

Walkthrough: Removing a Button from the Server Ribbon

Walkthrough: Replacing a Button on the Server Ribbon

Source : http://msdn.microsoft.com/en-us/library/ff407268.aspx

Ribbon Locations

Ribbon Locations

Ribbon Locations :


Below are the locations of the Ribbon Control in SharePoint 2010 :































































































































































































Control LocationControl Type
Ribbon.Documents.NewGROUP
Ribbon.Documents.New.NewDocumentSplitButton
Ribbon.Documents.New.AddDocumentMenu
Ribbon.Documents.New.AddDocument.Upload.UploadButton
Ribbon.Documents.New.AddDocument.Upload.UploadMultipleButton
Ribbon.Documents.New.NewFolderButton
Ribbon.Documents.EditCheckoutGROUP
Ribbon.Documents.EditCheckout.EditDocumentButton
Ribbon.Documents.EditCheckout.CheckOutButton
Ribbon.Documents.EditCheckout.CheckInButton
Ribbon.Documents.EditCheckout.DiscardCheckOutButton
Ribbon.Documents.ManageGROUP
Ribbon.Documents.Manage.ViewPropertiesButton
Ribbon.Documents.Manage.EditPropertiesButton
Ribbon.Documents.Manage.ViewVersionsButton
Ribbon.Documents.Manage.ManagePermissionsButton
Ribbon.Documents.Manage.DeleteButton
Ribbon.Documents.ShareGROUP
Ribbon.Documents.Share.EmailItemLinkButton
Ribbon.Documents.Share.AlertMeFlyoutAnchor
Ribbon.Documents.Share.AlertMe.MenuMenu
Ribbon.Documents.Share.AlertMe.Menu.Scope.AlertSelectionButton
Ribbon.Documents.Share.AlertMe.Menu.ManageAlerts.ManageAlertsButton
Ribbon.Documents.CopiesGROUP
Ribbon.Documents.Copies.DownloadButton
Ribbon.Documents.Copies.SendToFlyoutAnchor
Ribbon.Documents.Copies.ManageCopiesButton
Ribbon.Documents.Copies.GoToSourceItemButton
Ribbon.Documents.WorkflowGROUP
Ribbon.Documents.Workflow.ViewWorkflowsButton
Ribbon.Documents.Workflow.PublishButton
Ribbon.Documents.Workflow.UnPublishButton
Ribbon.Documents.Workflow.ModerateButton
Ribbon.Documents.Workflow.CancelApprovalButton
Ribbon.Documents.QuickStepsGROUP
Ribbon.Documents.FormActionsGROUP
Ribbon.Documents.FormActions.RepairItemsButton
Ribbon.Documents.FormActions.RepairAllItemsButton
Ribbon.Documents.FormActions.MergeDocumentsButton

Source : http://www.ktskumar.com/blog/2010/10/ribbon-locations-1/

Using URL Actions in SharePoint 2010

Using URL Actions in SharePoint 2010









This is my personal format to use URL Actions in SharePoint 2010 :









Code :
  <CustomAction
Id="SimpleAction"
RegistrationType="List"
RegistrationId="104"
ImageUrl="/_layouts/images/saveas32.png"
Location="NewFormToolbar"
Sequence="10"
Title="Announcement Button"
Description="This is an announcement button.">

<UrlAction Url="javascript:alert('Itemid={ItemId} and Listid={ListId}');"/>

</CustomAction>