c# - Trying to change BorderThickness in DataGrid ColumnHeader -
im using bundle called mahapps metro, i'm trying alter style of datagrid alter default borderthickness of columnheader.
the mahapps metro datagrid command can found here: https://github.com/mahapps/mahapps.metro/blob/master/mahapps.metro/styles/controls.datagrid.xaml
the part i'm trying access custom style is:
<border x:name="backgroundborder" borderthickness="0,0,0,3" grid.columnspan="2" background="{templatebinding background}" borderbrush="{templatebinding borderbrush}" />
currently have:
<style targettype="datagridcolumnheader" x:key="geledigdheader" basedon="{staticresource metrodatagridcolumnheader}"> <setter property="horizontalcontentalignment" value="right"/> <setter property="borderbrush" value="#953735"/> </style>
this changes color want alter thickness, using property="borderthickness" not work, obviously..
well if @ style there given no explicit access borderthickness via binding. since have style can add together line
<border x:name="backgroundborder" borderthickness="0,0,0,3" grid.columnspan="2" background="{templatebinding background}" borderbrush="{templatebinding borderbrush}" borderthickness="{templatebinding borderthickness}"/>
c# wpf xaml datagrid
No comments:
Post a Comment