开发者

Making textblock scroll

i currently have a textblock that is embedded in a large grid. I have read some post with regards to adding a grid/dockpanels and put the textblock inside.

In my XAML,

if i do this:

<Grid name="Large">
   <Scrollviewer>
      <Grid name="Small">
         <Textblock/>
      </Grid>
   </Scrollviewer>
</Grid>

i will get the vertical scroll bars in the "large" grid. My objective is to get scroll bars in the "small"开发者_如何学C grid. Anybody has any idea?


Move it down a level:

<Grid name="Large">
   <Grid name="Small">
       <Scrollviewer>
          <Textblock />
       </Scrollviewer>
   </Grid>
</Grid>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜