c# - Vertical ScrollBar does not appear at runtime -


my vertical scrollbar never appears @ run time.

this markup:

<scrollviewer grid.row="1" grid.columnspan="2" grid.column="0"  > <textbox isreadonly="true" acceptstab="true"      height="200"  textwrapping="wrap" name="txtrecord"           margin="0,3,0,0"           acceptsreturn="true"            verticalscrollbarvisibility="auto"></textbox> </scrollviewer> 

what looks when run it:

enter image description here

only thing textbox inside usercontrol...

i recommend not use scrollviewer textbox show vertical scrollbar. how changing markup follows:

<textbox grid.row="1" grid.columnspan="2" grid.column="0"            isreadonly="true" acceptstab="true"           height="200"  textwrapping="wrap" name="txtrecord"           margin="0,3,0,0"           acceptsreturn="true"            verticalscrollbarvisibility="auto"></textbox> 

there may possibility text box wide right side of textbox hidden somehow within scrollviewer.


Comments