wpf - Drag window from a grid -


itemprop = "text">

I have a custom window set to windowsStyle = "none", (at least a title or max - button) And I am trying to implement a drummer operation when the user clicks and drags on the grid.

The first is the weird issue, so the grid is any backround. This event is removed from the Nevers (it's wired up by calling DragMove on a MouseLeftButtonDown handler). Adding some background color is required to activate the activity, but after dragging, I get this error:

Code Snipet can only call DragMove when the primary mouse button Is pressed ":

 () End Sub  Personal sub Grid1_MouseLeftButtonDown (ByVal Handle Grid1.MouseLeftButtonDown DragMove as in this System.Object, ByVal e System.Windows.Input.MouseButtonEventArgs) / Code>  

I know that it will work fine for a label, but there it works in a way for a grid Not from?

OK, I got the answer ..

I used to wrap one Limit used grid and then caught the boundary 1_MouseLeftButtonDown event.

I had to set the background of boundaries to "transparent", and now everything works like charms

  Private sub-limits by 1_MouseLeftButtonDown (System byVal Sender , ByVal as the system and .windows.industry.mozbuttonEventAir) handles the range 1. Mouse leftbuttondown drag sub () and sub  

Comments