winforms - How to fire UIElement.TouchDown event on Windows Forms C# on Touchscreen, windows 8 -
this need windows forms (winforms) - not wpf. problem single mousedown event didn't fire on touchscreen on windows 8. mousedown fire either after touch , move finger or after click - fire after off finger. want fire normal mousedown should - after touch screen. solution touchdown event. but, cant handle event. create class multitouch that:
class moultitouch : uielement { public moultitouch() { this.touchdown += new eventhandler<system.windows.input.toucheventargs>(moultitouch_touchdown); } void moultitouch_touchdown(object sender, system.windows.input.toucheventargs e) { //it never goes in } protected override void ontouchdown(system.windows.input.toucheventargs e) { base.ontouchdown(e); } } after i'm declaring class in component on touch should handle event. did lot of research on , 've been trying , nothing far. think "hosting wpf composite control in windows forms" http://msdn.microsoft.com/en-us/library/ms742215.aspx solve problem solution long , tough. or ideas appreciated.
Comments
Post a Comment