You Are My Crystal

导航

2010年12月1日 #

【原】Silverlight:为DataGird的header设置tooltip

摘要: 1 引入xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"2 定义一个Style:(使用Datagrid 的HeaderStyle引用这个Style即可,显示的Tooltip和文本是DataGrid的Header属性对应的值)[代码]5        TextBlockText="{Binding}"ToolTipService.ToolTip="{Binding}"/TextBlock6      /DataTemp 阅读全文

posted @ 2010-12-01 16:46 mycrystal 阅读(644) 评论(1) 推荐(0) 编辑