Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used two slider control and used ManipulationDelta event to handle multitouch events. and depending on the movement of the slider some process happen. Now the issue is in my canvas movement of the object get freeze when i move my slider through touch screen.

I read somewhere, optimizing the outside code will work. but in my case i am not able to change my code outside the event.

Here is my code,
C#
private void slider_ManipulationDelta(object sender, ManipulationDelataEventArgs e)
{
 slider.value += e.DeltaManipulation.Translation.X;
 Canvas.SetLeft(rectangle, slider.value *2);
}


Edit :
1) I have removed all code from event but still it is freeze when dealing with multiple slider control
2) I have DispatcherTimer to update other UI element on Canvas on slider.Value

Thanks
Posted
Updated 13-Nov-12 2:47am
v5

1 solution

i think you should use MultiThriding
 
Share this answer
 
Comments
skokeh 13-Nov-12 2:41am    
Try to create New Process then add your code in that Event
Process.add(....)
it should work
AmitGajjar 13-Nov-12 2:49am    
I have already done that. but not working.
AmitGajjar 13-Nov-12 2:49am    
even i am commenting the code in the event, UI get freezed.
skokeh 13-Nov-12 2:52am    
Sometimes the Event will not work correctly in debugging mode\
try to create EXE and check it without debugging
AmitGajjar 13-Nov-12 3:00am    
i have release the exe and execute it. but no hope :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900