c# - Handle number of rows in GridView -
i have need create gridview, have 1 row , many columns.
because want realize semanticzoom , scroll view.
gridview populated customusercontrols here code:
<semanticzoom iszoomoutbuttonenabled="false"> <semanticzoom.zoomedinview> <gridview x:name="zoomedinview" verticalalignment="center" selectionmode="none" scrollviewer.horizontalscrollbarvisibility="hidden" itemcontainerstyle="{staticresource gridviewitemstyle}"> <gridview.groupstyle> <groupstyle> <groupstyle.panel> <itemspaneltemplate> <variablesizedwrapgrid maximumrowsorcolumns="1" orientation="horizontal" /> </itemspaneltemplate> </groupstyle.panel> </groupstyle> </gridview.groupstyle> <controls:firstcontrol verticalalignment="stretch" /> <controls:secondcontrol verticalalignment="stretch" /> <controls:thirdcontrol verticalalignment="stretch" /> </gridview> </semanticzoom.zoomedinview> <semanticzoom.zoomedoutview> <gridview selectionmode="none" scrollviewer.horizontalscrollbarvisibility="hidden"> </gridview> </semanticzoom.zoomedoutview> </semanticzoom>
the controls width handled children, height must full size of gridview, how achieve this?
replaced
itemspanel to:
<gridview.itemspanel> <itemspaneltemplate> <virtualizingstackpanel orientation="horizontal"/> </itemspaneltemplate> </gridview.itemspanel>
worked charm
Comments
Post a Comment