开发者

Making textblock scroll

开发者 https://www.devze.com 2023-03-13 07:07 出处:网络
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.

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

精彩评论

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