Click here to Skip to main content
15,888,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a WPF application. I need help creating the Close, Restore/Maximise, Minimise buttons. (A tutorial).

In addition to this can someone help me solve why when debug'in my application after say maximising the application it does not increase in size.

Finally, out of curiosity, [let me give context], My window will, have some sort of grid (not chosen out of the many capabilities of WPF) with 'say for example' pictures (it wont really be pictures, but just saying) would there be a way to have it show a 3x3 grid of "Pictures" or 4x4 or 5x5 etc.?

Thanks again,
Posted

1 solution

I have created a WPF application. I need help creating the Close, Restore/Maximise, Minimise buttons. (A tutorial).
Have a look at these articles
WPF Non-Client Area Design Techniques For Custom Window Frames[^]
Moving a WPF Window with a WindowStyle of None[^]

In addition to this can someone help me solve why when debug'in my application after say maximising the application it does not increase in size.
You'll need to provide some details about your current application, post the relevant XAML and code

..would there be a way to have it show a 3x3 grid of "Pictures" or 4x4 or 5x5 etc.?
You can use Grid[^] with x columns and rows defined. If the cells are to be of equal size then UniformGrid[^] is a good choice.
 
Share this answer
 
Comments
Hooolagon 11-Sep-11 14:40pm    
I have successfully created the X and - button in Microsoft Expression Blend 4, I require further help, however I think it would be best to ask more questions..

My current application uses Height and Width, not ActualHeight/ActualWidth nor does it use Max/Min (This is because I do not know which out of the two is used for what) [Maybe someone could explain? - Having difficulty finding out its exact purpose with an example].

I think I will use the Grid and not UniformGrid unless uniform grid allows me to have these so called "pictures" to have a variety of FORMATS (3x3,4x4..) the so called "pictures" will be ofcourse the same size, however I will be attempting to animate them with a MouseOver.

(DAMN, I have learnt a lot,) Thanks!

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