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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -