Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


i´ve some problems with my customized WPF-Window.



I want a window without any border, so i set the ResizeMode="NoResize" and WindowStyle="None". This works fine for me, but now i´m missing some features. Especially, its very important to get back the "Dock"-Function of the window, if I drop it on the left or right side of the screen. Also i missing the "Maximize"-function if I drop the window on the top edge of screen.



I know, that i could reprogram that behaviour (i´ve already done this), but i want the original process with its animation (the transparency rectangle) :)



Are there any suggestions?

EDIT 1 :

http://www.youtube.com/watch?v=hLJThaqoTFg
Well, I want that my window behaves exactly as seen in the little video (with the little, transparency animation), if you put it on the left, right or top of the screen. Currently nothing happens :(


Thanks and Greetz from Germany
Posted
Updated 17-May-13 10:54am
v2
Comments
Sergey Alexandrovich Kryukov 17-May-13 16:33pm    
It depends on what kind of "docking" are you looking for. It cab be 1) moving dockable controls like in Visual Studio, 2) controls or panels docked to sides (or Fill) like in System.Windows.Form.Control.Dock. Both behaviors are solvable.
—SA
Sergey Alexandrovich Kryukov 17-May-13 18:30pm    
You Youtube video is not accessible, did you know that?
You need to be able to express yourself in words and some notations. Are you a developer or not? :-)
—SA
Kai S. 19-May-13 6:33am    
Hello Sergey, i did not know that. It should be accessible right now.
Yes i'm a developer, however in the first year of education.
Sergey Alexandrovich Kryukov 19-May-13 13:15pm    
Yes, thanks; now I understand what did you mean; as you see, this is not what I thought at first.
—SA

1 solution

When you remove the default "chrome" by setting a custom window style (in blend or manually), the default behaviour such as dragging ,aero peek,and other stuff is lost (title, caption buttons etc..)

In this case, rather than creating a custom window style you should customize the "chrome". There's a nice CP article on how to do that
WPF Custom Chrome Library

Regards,
Amitosh
 
Share this answer
 
Comments
Kai S. 18-May-13 4:39am    
Thanks, thats exactly what I'm looking for! :)
Sergey Alexandrovich Kryukov 19-May-13 13:17pm    
As I can see, you already got the answer.
Amitosh gets my 5.
—SA
AlphaDeltaTheta 18-May-13 21:20pm    
You're welcome! :)

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