<Tabitem> <tabitem. header> <label content = "account information" horizontalalignment = "stretch" mouseleftbuttonup = "tabitemheader_clientinfo_mouseleftbuttonup"/> </tabitem. header> <DataGrid X: Name = "datagridclientinfo" canuseraddrows = "false" autogeneratecolumns = "false"> <DataGrid. columns> <maid header = "User Name" binding = "{binding clientname}"/> <maid header = "Last Day" binding = "{last day binding}"/> <maid Column header = "buy frozen" binding = "{binding buy frozen}"/> <maid header = "sell frozen" binding = "{binding sell frozen}"/> <maid header = "purchase deposit" binding = "{binding purchase deposit}"> <datagridtextcolumn. cellstyle> <style targettype = "{X: Type datagridcell}"> <setter property = "background" value = "tomato"/> </style> </datagridtextcolumn. cellstyle> </maid> <maid header = "sell margin" binding = "{binding sell margin}"> <maid. cellstyle> <style targettype = "{X: Type datagridcell}"> <setter property = "background" value = "palegreen"/> </style> </datagridtextcolumn. cellstyle> </maid> <maid header = "profit" binding = "{binding profit}"/> <maid header = "loss" binding = "{binding loss}"/> <maid header = "available funds" binding = "{binding available funds}"/> <maid header = "dynamic benefits" binding = "{binding dynamic benefits}"> <maid. cellstyle> <style targettype = "{X: Type datagridcell}"> <setter property = "background" value = "{binding dynamic benefits, converter = {staticresource positivenegativecolorconver} "/> </style> </datagridtextcolumn. cellstyle> </maid> <maid header = "Dynamic Risk" binding = "{binding dynamic risk}"/> <maid header = "Risk Level" binding = "{binding risk level} "/> <maid header =" service fee "binding =" {binding service fee} "/> <maid header =" floating profit and loss "binding =" {binding floating profit and loss} "/> <datagridtextcolumn header = "Closed Profit and Loss" binding = "{binding closed Profit and Loss}"/> <datagridtextcolumn header = "incoming and outgoing gold on the current day" binding = "{binding receiving and picking gold on the current day}"/> <maid header = "total deposit" binding = "{binding total deposit}"/> <maid header = "pledged amount" binding = "{binding pledged amount}"/> <maid header = "Dynamic Risk" binding = "{binding dynamic risk}"/> <datagridtextcolumn header = "exchange risk" binding = "{binding exchange risk}" width = "*"/> </DataGrid. columns> </DataGrid> </tabitem>
1. If there is no message directly, you can add a label in tabitem. header to bind the label to The onclick message to enable the tabitem to be clicked.