ItemsControl 내부의 모든 항목 (여기서는 TextBox)이 어떻게 세로 스크롤 막대를 표시 할 수 있습니까?ItemsControl 항목에 스크롤 막대 표시
모든 확장자 주위에 세로 스크롤 막대가 표시되는 것을 원하지 않습니다.
코드 그게 전부 내가 시도 :<ItemsControl ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding Path=ErrorLogs}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel IsVirtualizing="True" VirtualizationMode="Recycling"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Expander Margin="0" Header="{Binding FileName}" Background="Green">
<Controls:BindableTextBox Background="Red"
Text="{Binding Content, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
</Expander>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
가있는 ScrollViewer에 넣어? – Clemens
이전에이 작업을 수행했지만 각각의 TextBox가 ItemsControl이 아닌 스크롤 막대를 수직으로 가져 오기를 원합니다. – Pascal