Click here to Skip to main content
15,878,048 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys
I got confused !!!
When I write this sub in a Window in wpf, it works fine.
But when I use this sub in UserControl in wpf, it doesn't work!
Any kindly idea please?

What I have tried:

Protected Overrides Sub OnMouseLeftButtonDown(ByVal e As MouseButtonEventArgs)
End Sub
Updated 6-Dec-23 5:27am

1 solution

This sub only works on Window, not UserControl.
Because a UserControl is sitting on a Window and a UserControl is not a Window.
Share this answer

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