Prev: Mini-PhotoShop Application
Next: URGENT
From: J.F. Ronner on 3 Nov 2009 06:54 Hello, I am working on a WPF application and I have an issue regarding automatic resizing: I use Visual Studio Express Edition to write the C# code and I use Expression Blend for designing the application (XAML). I am new to WPF and Expression Blend, so please bear with me... :-) My question is: Can I add some code or modify some property that allows me to have the controls in the form (or window) to automatically resize when the window is resized? Let me explain this below: I have come up with a C# function that uses a percentage to resize the controls after the window has been resized with a certain percentage, but I think it can be done a lot easier (and better). For example: A window of 500x500 pixels contains a grid that contains a button. Now I want that button to grow bigger or smaller if the window has been resized (the button must be resized with the same percentage). I have read this: http://msdn.microsoft.com/en-us/library/ms748828.aspx But that was not very helpful. So if anyone can help me? Thanks in advance. Kind regards, J.F. Ronner
|
Pages: 1 Prev: Mini-PhotoShop Application Next: URGENT |