WPF tabcontrol tabitem click Information

Source: Internet
Author: User
<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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.