silverlight - “Is not recognized or is not accessible” error, when creating a Table -
i have been trying same table in example in windows phone: http://www.scottlogic.com/blog/2010/11/15/using-a-grid-as-the-panel-for-an-itemscontrol.html
i have downloaded project , have copied every class: -griditemscontrol -gridutils -phantompanel after have changed namespace of classes "project.tables"
than have declared in xaml page xmlns:table="clr-namespace:project.tables"
after doing fine except parts line:
the error :"is not recognized or not accessible" know solution problem?
here sample code xaml page:
<scrollviewer verticalscrollbarvisibility="auto"> <itemscontrol table:gridutils.itemssource="{binding}" verticalalignment="top"> <itemscontrol.itemspanel> <itemspaneltemplate> <grid table:gridutils.itemsperrow="3"> <grid.columndefinitions> <columndefinition width="2*"/> <columndefinition width="*"/> </grid.columndefinitions> </grid> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemtemplate> <datatemplate> <table:phantompanel> <textblock text="{binding path=item}"/> <textblock text="{binding path=quantity}" grid.column="1"/> <line stroke="lightgray" strokethickness="1" verticalalignment="bottom" x1="0" x2="1" y1="0" y2="0" stretch="fill" grid.columnspan="2"/> </table:phantompanel> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> </scrollviewer>
zimas link following wpf , silverlight application trying wp it's there may issue things that's used in link may not supported in windows phone check out . , if want in windows phone start scratch . not copy code directly..hope helps you..
Comments
Post a Comment