Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 Datagrid RowHeader 鼠标悬停的东西。
我如何从 rowIndex 获取 DataGridRowHeader。
谢谢迪
<Style TargetType="DataGridRowHeader"> <EventSetter Event="MouseEnter" Handler="OnMouseEnter"/> </Style> private void OnMouseEnter(object sender, MouseEventArgs e) { //your logic here }
如果这有助于您的逻辑,您可以将 MouseLeave 添加到样式中