Unplanned
Last Updated: 28 Aug 2023 15:16 by ADMIN
Stenly
Created on: 02 Aug 2023 08:26
Category: MultiColumnComboBox
Type: Feature Request
1
MultiColumnComboBox: Include API to allow vertical scrolling to bubble to a parent ScrollViewer
Currently, when a RadMultiColumnComboBox is placed in a ScrollViewer, the inner ScrollViewer of RadMultiColumnComboBox prevents the parent one from scrolling via the mouse wheel.

Add an option or change the default behavior and allow the scrolling to bubble to the parent scrollbar. This behavior can be observed in the native TextBox control with an enabled vertical scrollbar.

For the time being, the MouseWheel event can be manually raised:
private void ScrollViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
{
	if (sender is ListBox && !e.Handled)
        {
		e.Handled = true;
		var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
		eventArg.RoutedEvent = UIElement.MouseWheelEvent;
		eventArg.Source = sender;
		var parent = ((Control)sender).Parent as UIElement;
		parent.RaiseEvent(eventArg);
	}
}
0 comments