c# - "Invalid XAML" when define ItemsPanelTemplate for ListBox -


i'm trying make list scroll horizontally, follow this, debug give me error

enter image description here

here's code:

<phone:phoneapplicationpage.resources>           <itemspaneltemplate x:key="itemspaneltemplate1">         <stackpanel orientation="horizontal"/>     </itemspaneltemplate> </phone:phoneapplicationpage.resources>  .................  <listbox itemssource="{binding homealbumlist}"      itemtemplate="{staticresource horizontallisttemplate}"     selectionchanged="ssc_changealbum"     scrollviewer.horizontalscrollbarvisibility="auto"      scrollviewer.verticalscrollbarvisibility="disabled"      itemspanel="{staticresource itemspaneltemplate1}" /> 

i'm working on visual studio 2013 update 4.

thanks :) .


Comments