We are developing a touch application in WPF. Our ScrollViewers have the property PanningMode set to Both to enable swipe scrolling. This works fine when swiping in empty areas and even on CheckBox and ComboBox controls.
However when swiping on a TextBox (hold the finger briefly on the textbox and move it up or down), the ScrollViewer doesn't scroll. Is there a way to enable swipe-scrolling on all controls and only focus them on tap?
This behaviour can be reproduced with the following code:
<Window x:Class="WpfSandbox.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<ScrollViewer PanningMode="Both">
<StackPanel>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<TextBox Margin="5"></TextBox>
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<CheckBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
<ComboBox Margin="5" />
</StackPanel>
</ScrollViewer>
</Window>