Firing MouseLeftButtonDown event programmatically
        Posted  
        
            by RajenK
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by RajenK
        
        
        
        Published on 2010-06-13T20:44:35Z
        Indexed on 
            2010/06/13
            20:52 UTC
        
        
        Read the original article
        Hit count: 346
        
Hi,
I'm trying to manually fire a MouseLeftButtonDown event on a WPF control programmatically, as I am using the Microsoft Surface SDK, which does not fire MouseLeftButtonDown events, but ContactDown events. Basically I'm trying to push the MouseLeftButtonDown event down to the control, to fire off the correct behavior on the control, while handling a ContactDown event.
I'm guessing I have to somehow use the RaiseEvent method on the control to do this with MouseButtonEventArgs, but I'm having some trouble figuring out the parameters.
Thanks in advance for your help!
© Stack Overflow or respective owner