Home wpf Difference UniformGrid from Grid

Difference UniformGrid from Grid




I want to replace in my WPF application GRID control to a more appropriate UniformGrid. However, after replacing (seemingly equivalent), I get offsets in the location of the content on cells and repetitions. Tell me what the difference between these controls and what can be connected with this behavior?

Answer 1, Authority 100%

uniformgrid is very different from Grid and is very limited. It automatically places the elements in the grid with a certain size, changing the size, as well as the number of rows and columns when adding controls. Cells always have the same size. This item is conveniently used to quickly create a mesh with a unified size (chessboard, calculator buttons). The number of rows and columns can be assigned manually. In this case, if the number of child elements exceeds the number of cells, these elements will not be reflected. If you set only the number of lines, then as the daughter elements increases, the number of columns will increase.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions