WPF 禁止ListBox滚动条滚动
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<EventSetter Event="RequestBringIntoView" Handler="ListBoxItem_RequestBringIntoView"></EventSetter>
</Style>
</ListBox.ItemContainerStyle>
private void ListBoxItem_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
{
e.Handled = true;
}

浙公网安备 33010602011771号