I have the following XsltListViewWebPart on a custom application page:
<WebPartPages:XsltListViewWebPart runat="server"
Title="My Documents"
ListUrl="Lists/MyDocuments"
ViewGuid="{00000000-0000-0000-0000-000000000000}"
ChromeType="TitleOnly"
ShowToolbarWithRibbon="FALSE"
>
<XmlDefinition>
<View MobileView="TRUE" Type="HTML" Level="1">
<Query>
<Where>
<Eq>
<FieldRef Name='MyDocMyId'/>
<Value Type='Text'>{controlMyID}</Value>
</Eq>
</Where>
</Query>
<ViewFields>
<FieldRef Name="DocIcon"/>
<FieldRef Name="Title"/>
<FieldRef Name="MyDocType"/>
<FieldRef Name="MyDocDate"/>
<FieldRef Name="MyDocNotes"/>
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Toolbar Type="FreeForm"/>
</View>
</XmlDefinition>
<parameterbindings>
<!-- ootb bindings snipped -->
<ParameterBinding Name="controlMyID" Location="Control(myDocMyId,Value)" DefaultValue="0" />
</parameterbindings>
</WebPartPages:XsltListViewWebPart>
It's working great, except it is rendering with the New/Upload/Actions/Settings/View toolbar. If I remove the ViewGuid attribute, the toolbar goes away, but the web part renders using 2007-ish table-based HTML.
Is there a way to configure a XsltListViewWebPart using a custom view so that it has the same XSLT look and feel, but does not show the toolbar?