<olap:XmlaSapDataSource x:Key="DataSource"> <olap:XmlaSapDataSource.ConnectionSettings> <olap:XmlaSapConnectionSettings ServerUri="http://server/sap"/> </olap:XmlaSapDataSource.ConnectionSettings> <olap:XmlaSapDataSource.Credentials> <olap:XmlaNetworkCredential Password="P@ssw0rd" UserName="Admin"> </olap:XmlaNetworkCredential> </olap:XmlaSapDataSource.Credentials> </olap:XmlaSapDataSource> ... <ig:XamPivotGrid x:Name="PivotGrid" DataSource="{StaticResource DataSource}" />