Kay*_*aya 8 wpf wrappanel scrollviewer
我有一个显示项目的包装面板,但我不能让滚动条正常工作任何想法的错误是什么?
<ScrollViewer>
<ItemsControl Name="itemsControl">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel ItemWidth="{Binding ElementName=sizeSlider, Path=Value}"
FlowDirection="LeftToRight" Height="auto" Width="auto"
HorizontalAlignment="Left" Name="wrapPanel1"
VerticalAlignment="Top"
Margin="5"
>
</WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</ScrollViewer>
</StackPanel>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7064 次 |
最近记录: |