This is a migrated thread and some comments may be shown as answers.

[Solved] RadCustomHubTile Touch Behavior

2 Answers 133 Views
HubTile for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florian
Top achievements
Rank 2
Florian asked on 06 Mar 2013, 09:53 AM
Hello,

We are using an itemscontrol which has the RadCustomHubTile as DataTemplate.

Each Tile  tile has a PointerPressed Event which executes some logic.

If we have 200 items and 200 RadCustomHubTiles are displayed, we want the user to be able to scroll through the tiles.

Now its a Problem that every time the user swipes on the tiles to scroll the view, the tile is activating the PointerPressed Event BEFORE the Scroll Event.

How can we make the RadCustomHubTile to recognize Swiping before Pressing?

2 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 07 Mar 2013, 04:08 PM
Hi Florian,

Thank you for contacting us.

I think that in your scenario the best way to avoid PointerPressed event execution (before scrolling) is to switch it with Tapped event. That will trigger your logic only if a proper  tap/click  is made at a single point area. A problem of this kind may occur because of the event sequence execution. First control event that executes is PointerEntered then PointerMoved and right after them is the PointerPressed. The replacing of PointerPressed with Tapped event gives us the ease that no click/tap logic will be executed while scrolling through the tiles.

I hope this helps. Let me know if I can assist you further.

All the best,
Alexander
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Florian
Top achievements
Rank 2
answered on 08 Mar 2013, 04:31 PM
Hello Alexander,

Your solution worked well. Thanks for your help!

Regards
Tags
HubTile for XAML
Asked by
Florian
Top achievements
Rank 2
Answers by
Alexander
Telerik team
Florian
Top achievements
Rank 2
Share this question
or