c# - Click and drag event handler -


I have an app with a custom window (transparency and no limit) I have a DmAmview on the left mouse button Headline is created with behavior. This allows me to drag the window to the top, so that is the maximum. Now I want to write the code so that when I click on the top and drag it, it will organize the windowstate in general ...

What a click & amp; Drag the event handler, or any other way?

Edit: Platform C # in WPF,

You use the window Will happen. Status Change Event

The best way to handle maxillization and minimization is to manipulate WindowState property. It saves the window. Restore property with previous size. If you need a more sophisticated solution then

Is there no need to do this similar to the PS Win 7 feature? :)

Editing: There is MoveMove Event in UIElement

  Private Zero Windows_MouseMove (Object Sender, MouseEventArgs e) {if (e.LeftButton == MouseButtonState.Pressed) { Main window 1 Windstate = windowstate Normal; }}  

This is a mess because the incident is going to move you all the time


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -