[转]silverlight Datagrid 行上增加ToolTip
摘要:有两种办法:1. 直接在后台处理在数据绑定后 ,注册LoadingRow 事件this.DataGrid.LoadingRow += new EventHandler(DataGrid_LoadingRow);void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e){Task ts = e.Row.DataContext as Task;ToolTipService.SetToolTip(e.Row, ts.Name);//throw new NotImplementedException();}2. 稍微麻烦点, 重写da
阅读全文
posted @
2013-08-16 16:29
SamWang
阅读(833)
推荐(0) 编辑
[转]silverlight中定义样式
摘要:作用域:定义所有的样式[html]view plaincopyprint?<Applicationxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"x:Class="SilverlightApplication1.App"><Application.Resources><StyleTargetType="But
阅读全文
posted @
2013-03-22 11:21
SamWang
阅读(521)
推荐(0) 编辑
[转]Silverlight DataGrid组件具体特点详解
摘要:说明:Silverlight DataGrid组件是Silverlight数据组件中最为常用并且是功能最为强大的数据组件。因此,对开发者而言,深入了解其特性是十分有必要的。本文先介绍该组件的基本特性,接着通过几个简单实例来说明该组件的基本数据操作过程。Silverlight DataGrid组件所在命名空间:System.Windows.ControlsSilverlight DataGrid组件常用方法:BeginEdit:使DataGrid进入编辑状态。CancelEdit:取消DataGrid的编辑状态。CollapseRowGroup:闭合DataGrid的行分组。CommitEdit
阅读全文
posted @
2013-03-21 10:13
SamWang
阅读(774)
推荐(0) 编辑