随笔分类 -  Control

VMTreeView:NotificationObject
摘要:public class VMTreeView:NotificationObject { public ObservableCollection<OneNode> OneNodeList { get; set; } public VMTreeView() { OneNodeList = new ObservableCollection<OneNode>(); ObservableCollection<OneNode> NodeList1 = new ObservableCollection<OneNode>(); NodeList1.Add(ne 阅读全文

posted @ 2012-04-04 23:56 项目管理之家 阅读(287) 评论(0) 推荐(0)

wpf- DataGrid 常用属性和事件
摘要:组件所在命名空间:System.Windows.Controls组件常用方法:BeginEdit:使DataGrid进入编辑状态。CancelEdit:取消DataGrid的编辑状态。CollapseRowGroup:闭合DataGrid的行分组。CommitEdit:确认DataGrid的编辑完成。ExpandRowGroup:展开DataGrid的行分组。GetGroupFromItem:从具体Item中得到分组。ScrollIntoView:滚动DataGrid视图。组件常用属性:AlternatingRowBackground:获取或设置一个笔刷用来描绘DataGrid奇数行的背景。A 阅读全文

posted @ 2012-04-01 15:32 项目管理之家 阅读(19567) 评论(0) 推荐(2)

NuGet:添加EntityFramework
摘要:Install-Package EntityFramework 阅读全文

posted @ 2012-03-18 14:32 项目管理之家 阅读(269) 评论(0) 推荐(0)

DataGrid之DataGridComboBoxColumn,DataGridCheckBoxColumn,DataGridHyperlinkColumn,DataGridTextColumn
摘要:DataGrid之DataGridComboBoxColumn,DataGridCheckBoxColumn,DataGridHyperlinkColumn,DataGridTextColumn默认情况下,当我们为DataGrid 控件设置ItemSource 属性后,DataGrid 会根据数据类型自动生成相应的列,下表列出DataGrid 支持的四种列及其数据类型。<Window x:Class="WPF4ControlTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml 阅读全文

posted @ 2012-03-18 12:07 项目管理之家 阅读(850) 评论(0) 推荐(0)

导航