WPF dock control to cell in grid -
if have 2 2 grid how button fill entire cell? have use trigger? how column's width in case?
thanks ian
the button
default consume entire cell.
<grid> <grid.rowdefinitions> <rowdefinition height="100"></rowdefinition> </grid.rowdefinitions> <grid.columndefinitions> <columndefinition width="200"></columndefinition> </grid.columndefinitions> <button></button> </grid>
you can columns width accessing columndefinitions
collection.
grid g = new grid(); g.columndefinitions[0].width;
Comments
Post a Comment