有人知道如何将滚动条添加到项目控件中包含的包装面板中吗?
最佳答案
这在这里行不通,
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<ScrollViewer>
<WrapPanel Orientation="Horizontal" />
</ScrollViewer>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
你遇到了一个令人讨厌的异常, VisualTree的ItemsPanelTemplate必须包含一个Panel。 “System.Windows.Controls.ScrollViewer”不是面板。
关于.net - 将滚动条放在项目控件中包含的环绕面板上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/897518/