当前位置: 首页 > news >正文

做网站前台要学哪些淄博优化公司

做网站前台要学哪些,淄博优化公司,邯郸做网站哪家好,凡科可以做淘宝客网站吗此教程示范如何添加TreeListControl到项目和绑定控件自引用数据源#xff1a; 添加数据模型 绑定tree#xff0c;并添加如下字段到数据源对象#xff1a; Key字段包含唯一值索引节点 Parent字段包含父索引节点 添加数据模型#xff08;Employee和Staff类#xff09;到…此教程示范如何添加TreeListControl到项目和绑定控件自引用数据源 添加数据模型 绑定tree并添加如下字段到数据源对象 Key字段包含唯一值索引节点 Parent字段包含父索引节点 添加数据模型Employee和Staff类到MainWindow.xaml.cs 文件 namespace DxTreeListGettingStarted {public partial class MainWindow : Window { ... }public class Employee {public int ID { get; set; }public int ParentID { get; set; }public string Name { get; set; }public string Position { get; set; }public string Department { get; set; }}public static class Staff {public static ListEmployee GetStaff() {ListEmployee staff new ListEmployee();staff.Add(new Employee() { ID 0, Name Gregory S. Price, Department , Position President });staff.Add(new Employee() { ID 1, ParentID 0, Name Irma R. Marshall, Department Marketing, Position Vice President });staff.Add(new Employee() { ID 2, ParentID 0, Name John C. Powell, Department Operations, Position Vice President });staff.Add(new Employee() { ID 3, ParentID 0, Name Christian P. Laclair, Department Production, Position Vice President });staff.Add(new Employee() { ID 4, ParentID 0, Name Karen J. Kelly, Department Finance, Position Vice President });staff.Add(new Employee() { ID 5, ParentID 1, Name Brian C. Cowling, Department Marketing, Position Manager });staff.Add(new Employee() { ID 6, ParentID 1, Name Thomas C. Dawson, Department Marketing, Position Manager });staff.Add(new Employee() { ID 7, ParentID 1, Name Angel M. Wilson, Department Marketing, Position Manager });staff.Add(new Employee() { ID 8, ParentID 1, Name Bryan R. Henderson, Department Marketing, Position Manager });staff.Add(new Employee() { ID 9, ParentID 2, Name Harold S. Brandes, Department Operations, Position Manager });staff.Add(new Employee() { ID 10, ParentID 2, Name Michael S. Blevins, Department Operations, Position Manager });staff.Add(new Employee() { ID 11, ParentID 2, Name Jan K. Sisk, Department Operations, Position Manager });staff.Add(new Employee() { ID 12, ParentID 2, Name Sidney L. Holder, Department Operations, Position Manager });staff.Add(new Employee() { ID 13, ParentID 3, Name James L. Kelsey, Department Production, Position Manager });staff.Add(new Employee() { ID 14, ParentID 3, Name Howard M. Carpenter, Department Production, Position Manager });staff.Add(new Employee() { ID 15, ParentID 3, Name Jennifer T. Tapia, Department Production, Position Manager });staff.Add(new Employee() { ID 16, ParentID 4, Name Judith P. Underhill, Department Finance, Position Manager });staff.Add(new Employee() { ID 17, ParentID 4, Name Russell E. Belton, Department Finance, Position Manager });return staff;}} } 添加视图模型 创建视图模型暴露Employees字段 using DevExpress.Mvvm;namespace DxTreeListGettingStarted {public partial class MainWindow : Window { ... }public class Employee { ... }public static class Staff { ... }public class MainWindowViewModel : ViewModelBase {public MainWindowViewModel() {Employees Staff.GetStaff();}public ListEmployee Employees { get; private set; }} } 设置window数据上下文到视图模型 Window... Window.DataContextlocal:MainWindowViewModel//Window.DataContext 添加TreeListControl到视图 拖动TreeListControl组件从工具箱到form里面 选择TreeListControl点击Quick Actions 点击重新计算按钮到ItemsSource属性调用上下文菜单。选择创建数据绑定 选择Employees在对话框点击OK 设置AutoGenerateColumns添加AddNew 切换到XAML视图定义TreeListControl 视图 dxg:TreeListControl AutoGenerateColumnsAddNew ItemsSource{Binding Employees}dxg:TreeListControl.Viewdxg:TreeListView //dxg:TreeListControl.View /dxg:TreeListControl 返回设计器视图选择TreeListView调用Quick Actions 启动AutoWidth和AutoExpandAllNodes选项。指定服务行TreeListView.KeyFieldName 和 TreeListView.ParentFieldName生成tree dxg:TreeListControl ItemsSource{Binding Employees}AutoGenerateColumnsAddNew dxg:TreeListControl.Viewdxg:TreeListView KeyFieldNameID ParentFieldNameParentIDAutoWidthTrue AutoExpandAllNodesTrue //dxg:TreeListControl.View /dxg:TreeListControl 运行程序
http://www.dnsts.com.cn/news/181814.html

相关文章:

  • 微网站免费建设平台php 网站开发收费
  • 网站前端制作费用wordpress金融
  • 中国住建厅网站官网贵阳网站托管
  • 圣诞网站怎么做网站通内容管理系统
  • 一个网站可以做多少个关键词做网站是要云空间吗
  • 凌源网站优化中国营销咨询公司排名
  • 网站建设---部署与发布超级优化还原
  • 郑州网站开发招聘网站建设广金手指六六十四
  • 做简单网站的框架手机app软件安装下载
  • 网站 建设 汇报fc网页游戏排行榜
  • 建设机械网站策划软件开发和app开发的区别
  • 阿里巴巴国际站怎么开店wordpress加入视频
  • 江苏专业网站建设福建住房和城乡建设厅网站一体化平台
  • 免费行情网站链接wordpress公共聊天室
  • 网站建设怎么汇报东营做网站多少钱
  • 网站建设要什么软件旅游的网站怎么做
  • 临沂哪里有做网站的全球新冠疫苗接种率
  • 淘宝联盟网上的网站建设怎么制作属于自己的网址
  • 国外做兼职网站有哪些ftp 企业网站
  • 找别人做网站怎么防止别人修改社交手机网站开发
  • 搭建网站知识美容美发化妆品培训企业网站源码带后台php织梦dede5.7
  • 中国网站的建设如何使用wordpress html代码
  • 好品质高端网站设计新感觉建站wordpress数据库密码解密
  • 郑州网站推广价自定义wordpress后台
  • 平台建站建设微信网页开发教程
  • 网站后台生成器网站外链建设书籍
  • 西安网站建设的费用公司注册网站需要什么资料
  • 做空压机网站沈阳专业seo排名优化公司
  • 巴彦淖尔专业做网站的网易企业邮箱附件打不开
  • 湖南省建设厅官方网站官网东莞网站设计评价