垂直滚动网格内容

发布于 2024-09-13 08:37:55 字数 197 浏览 5 评论 0原文

我正在开发一个 Windows Phone 应用程序。

我有一个电话页面,其中有一个大文本块,并且堆栈面板上有一张图片。由于文本块太大,图片不可见。我在 stackpanel 上设置了 VerticalScrollBarVisibility="Visible" 但看不到图片。

如何使用滚动条查看文本块下方的内容?

I'm developing a Windows Phone application.

I have a phone page with a big textblock and a picture inside on a stackpanel. Because the textblock is big the picture isn't visible. I set VerticalScrollBarVisibility="Visible" on stackpanel but I can't see the picture.

How can I use a scrollbar to see the content bellow the textblock?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福%小乖 2024-09-20 08:37:55

将您的内容包装在 ScrollViewer 中:

<ScrollViewer VerticalScrollbarVisibility="Visible" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <!-- Your content here -->
</ScrollViewer>

Wrap your content in a ScrollViewer :

<ScrollViewer VerticalScrollbarVisibility="Visible" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <!-- Your content here -->
</ScrollViewer>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文