简体   繁体   中英

List box in c# windows phone 7

列表框是否允许在其中放置一个单词段落,而不是一个接一个地放置

I think you just need to put a text block inside a scroll viewer, but this article shows how to make a control:

See this article

This is some code that does the basic work:

<ScrollViewer x:Name="MyScroller">
    <TextBlock x:Name="MyTextBlock" TextWrapping="Wrap" Text="Some very long text here..." />
</ScrollViewer>

You'll see that if the area containing the text is bigger than the size of the textblock, you'll be able to scroll to view all text.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM