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
Post a Comment