wpf - Adding additional padding with Width="Auto" -


i have listview multiple gridviewcolumns, using width="auto" each of columns, ensures columns sized according largest element.

i want add additional breathing space each column header, along lines of: width = "auto" + 30

i have tried setting margins , padding results in column text heading being cut off prematurely when resized. ideas on how can achieve ?

my gridviewcolumn ?

<gridviewcolumn width="auto">         <gridviewcolumn.header>             <gridviewcolumnheader horizontalcontentalignment="left"                                   content="{x:static resources:resources.tableheadingdescription}"                                    sizechanged="description_column_sizechanged">             </gridviewcolumnheader>         </gridviewcolumn.header>         <gridviewcolumn.celltemplate>             <datatemplate>             <textblock name="descriptiontextblock"                         text="{binding description}"                         style="{staticresource textblock_gridentries_style}"                        margin="{binding hierarchylevel, mode=oneway, converter={staticresource hierarchytomarginconverter}}"/>             </datatemplate>         </gridviewcolumn.celltemplate>  </gridviewcolumn> 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -