c# - Binding or Style setter to get the default value of another control Type's property -


while generic question , ask if possible scenario, specific problem want create datagrid header looks this:

.------.-----------------.--------. |      |       name      |        | | sno. |-----------------|  age   | |      | first  | second |        | |------|--------|--------|--------| |1     |  joe   | montana|   96   | |2     | mario  | luigi  |   69   | '------'------'----------'--------' 

however, cant seem border under "name" cell has same borderbrush similar datagrid's default headers.

is there (hypothetical syntax):

<border borderbrush="{binding elementtype={x:type datagridcolumnheader}, path=borderbrush}" borderthickness="0 0 0 1" >    <textblock text="name" grid.column="0" grid.row="0" grid.columnspan="2" /> </border> 

if this, can bind property's value of control type , if changes theme, christmas!

edit: looking xaml solution...i can ofcourse hack around in code-behind myself.

thanks in advance!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -