Hi,
I'm having a couple of problems with my touchscreen inputs.
First of all, carousel doesn't understand single touch as a mouse left button down. i can select an item with mouse but i can't do that by touching the item. I can't find the right event to handle.
Secondly, I'm trying to scroll carousel with touchscreen inputs. As you can see it in my code, there is a ScrollViewer and its isManupulationEnabled = true.
However, it's scrolling too fast with the code below:
Even i multiply e.DeltaManipulation.Translation.X with 0.000001, its still too fast and not smooth
I have tried RadCarousel(not panel) before this but no success with it too.
I have also tried radCarousel.LineLeft() and LineRight() methods but got the same effect.
How can i scroll it smoothly? How can i handle touch inputs as left mouse button down?
Thanks
Gokay
I'm having a couple of problems with my touchscreen inputs.
First of all, carousel doesn't understand single touch as a mouse left button down. i can select an item with mouse but i can't do that by touching the item. I can't find the right event to handle.
Secondly, I'm trying to scroll carousel with touchscreen inputs. As you can see it in my code, there is a ScrollViewer and its isManupulationEnabled = true.
<ScrollViewer Name="scrollGallery" Grid.Row="3" VerticalAlignment="Top" Height="289" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" CanContentScroll="True" IsManipulationEnabled="True" ManipulationDelta="ScrollViewer_ManipulationDelta" ManipulationStarting="ScrollViewer_ManipulationStarting"> <telerik:RadCarouselPanel IsOpacityEnabled="True" IsScalingEnabled="True" IsSkewAngleYEnabled="True" HorizontalAlignment="Left" Height="289" Name="radCarousel" Background="{x:Null}" Width="1013"> </telerik:RadCarouselPanel></ScrollViewer>However, it's scrolling too fast with the code below:
private void ScrollViewer_ManipulationDelta(object sender, ManipulationDeltaEventArgs e) { scrollGallery.ScrollToHorizontalOffset(scrollGallery.HorizontalOffset - (e.DeltaManipulation.Translation.X * 0.000001)); if (e.IsInertial) { e.Complete(); } e.Handled = true; } private void ScrollViewer_ManipulationStarting(object sender, ManipulationStartingEventArgs e) { e.ManipulationContainer = this; e.Handled = true; }Even i multiply e.DeltaManipulation.Translation.X with 0.000001, its still too fast and not smooth
I have tried RadCarousel(not panel) before this but no success with it too.
I have also tried radCarousel.LineLeft() and LineRight() methods but got the same effect.
How can i scroll it smoothly? How can i handle touch inputs as left mouse button down?
Thanks
Gokay