[WPF]将图像放入DataGrid SELECTED行标题(重新制作) [英] [WPF] Put an image into DataGrid SELECTED Row Header (reprise)
本文介绍了[WPF]将图像放入DataGrid SELECTED行标题(重新制作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
前几天我问你如何将图标放入DataGrid行标题中。我通过这种方式使用ItemContainerGenerator获得了解决方案
Dim dgr As DataGridRow = myDataGrid.ItemContainerGenerator.ContainerFromItem(myDataGrid.SelectedItem)
dgr。 Header = img
解决方案
WPF是VB开发的一个相对较新的部分(我用它),因为你的问题是关于控制少数人的事件可能已经习惯了。
我在这个论坛给你更多机会。
< a href ="http://social.msdn.microsoft.com/Forums/en-US/wpf"> http://social.msdn.microsoft.com/Forums/en-US/wpf
hi,
some days ago I asked you how to put an icon into a DataGrid Row Header. I got the solution by using ItemContainerGenerator in this way
Dim dgr As DataGridRow = myDataGrid.ItemContainerGenerator.ContainerFromItem(myDataGrid.SelectedItem) dgr.Header = img
解决方案
WPF is a relative new part of VB development (I use it), because your question is about the events of a control of less persons are probably used to that.
I give you more chance in this forum.
这篇关于[WPF]将图像放入DataGrid SELECTED行标题(重新制作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文