Question

I have to design a calculator, but am working on the design first. The = button doesn't go into the space between the other buttons on the screen where I would like to place it. Here is a picture of what I have so far:

Uploaded with imageshack.us http://imageshack.us/a/img843/7687/unbenannt22z.jpg

I used StackPanels to create my Main Panel. How can I go about fixing this?

Was it helpful?

Solution

if you arrange your buttons in a Grid rather than a collection of StackPanels, then you'd be able to put the Equals button in the next to last row of the grid, and set its Grid.RowSpan to 2 so that it would work out as you intended.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top