I developed in VS 2010 a custom list form and I want to use the "standard" Sharepoint Ribbon, ie, the same Ribbon used in all list forms withe the same buttons.
It's possible do this?
Any help will be appreciated.
Yes it is possible. In my case the was a visual studio solution that contained a list with custom forms.
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\CustomDisplayForm.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\CustomEditForm.aspx" WebPartZoneID="Main"/>
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\CustomNewForm.aspx" WebPartZoneID="Main"/>
</Forms>
</MetaData>
</List>
And the pages referenced all are inherited from WebPartPage. The solution put these pages into {SharePointRoot}\Template\Pages.
Please let me know if you haven't got the idea and need more details.
I have an idea for this task - you can implement your custom form UI as a webpart and add it to a standard list item form. Then you need to hide (but not delete) a standart data form on that page. The idea behind it is to let the dataform webpart do the work for you - on a standard page it requests the needed tabs from the ribbon.. I've realized that it doesn't work because in this case you will not be able to control item save button - it will be rendered by DataFormwebPart. :(