c# - popup control not scrolling -
the list behind popup scrolling not content of popup. missing something?
<grid x:name="layoutroot"> <grid.projection> <planeprojection/> </grid.projection> <grid.background> <imagebrush imagesource="/assets/common/bg.png"/> </grid.background> <grid.rowdefinitions> <rowdefinition height="auto"/> <rowdefinition height="auto"/> <rowdefinition /> </grid.rowdefinitions> <mycontrols:header title="event calender" menuclickedcommand="{binding menuclicked}" /> <grid grid.row="1" margin="20"> <grid.columndefinitions> <columndefinition width="*" /> <columndefinition width="*" /> <columndefinition width="auto"/> </grid.columndefinitions> <image grid.column="0" source="/assets/event/btn_byday.png" /> <image grid.column="1" source="/assets/event/btn_byvenue.png" /> <image margin="20,0" tap="image_tap" verticalalignment="center" horizontalalignment="center" grid.column="2" source="/assets/event/icon_callist.png" /> </grid> <popup grid.row="2" x:name="popup" isopen="true"> <scrollviewer width="{binding devicewidth}" > <stackpanel margin="20,0"> <textblock text="item 1" margin="20"/> <textblock text="item 2" margin="20"/> <textblock text="item 3" margin="20"/> <textblock text="item 4" margin="20"/> <textblock text="item 5" margin="20"/> <textblock text="item 6" margin="20"/> <textblock text="item 7" margin="20"/> <textblock text="item 8" margin="20"/> <textblock text="item 9" margin="20"/> <textblock text="item 10" margin="20"/> <textblock text="item 11" margin="20"/> <textblock text="item 12" margin="20"/> <textblock text="item 13" margin="20"/> <textblock text="item 14" margin="20"/> <textblock text="item 15" margin="20"/> <textblock text="item 16" margin="20"/> </stackpanel> </scrollviewer> </popup> <scrollviewer grid.row="2" margin="20,0"> <stackpanel> <itemscontrol itemssource="{binding eventslist}"> <itemscontrol.itemtemplate> <datatemplate> <mycontrols:eventdetails /> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> </stackpanel> </scrollviewer> </grid>
ps: reason scrollviewer has taken height required show content. how can avoid that?
Comments
Post a Comment