我现在遇到了一个问题,当窗口垂直太小时,我的WPF应用程序将任何东西隐藏在折叠下面。如何使用XAML获取整个应用程序的垂直滚动条,以便用户滚动查看其余内容?
在窗口中放置滚动查看器:
<Window x:Class="WpfApplication2.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <ScrollViewer > <!-- Window content here --> </ScrollViewer> </Window>