Ran into a problem recently while helping out on a project where web part pages were being dynamically created from a feature receiver. Once the pages were created, everything works, except for the Title Bar Properties icon in the ribbon.
I then opened up SharePoint Designer 2010 to compare the two pages, and search for the TitleBarWebPart. Found it! Right where someone left it…in the web part page, in a WebPartZone, aptly identified as TitleBar.
In order to get the Title Bar Properties link to work on the dynamically created web part pages, we created a function in the Feature Receiver that takes in the SPLimitedWebPartManager for a web part page, and adds the TitleBarWebPart to the TitleBar web part zone. Notice that I’m not setting all the declared properties programmatically to keep the example short, but feel free to set whatever properties you want.