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

汕头免费建设网站制作海尔电商网站建设方案

汕头免费建设网站制作,海尔电商网站建设方案,中信建设有限责任公司官网招聘信息,海口网约车最新政策WPF Property Grid控件使用属性定义定义如何做和显示 本教程示范如何绑定WP Property Grid控件到数据和创建属性定义。 执行如下步骤 第一步-创建属性定义 添加PropertyGridControl组件到项目。 打开工具箱在vs#xff0c;定位到DX.23.1: Data 面板#xff0c;选择Prope…WPF Property Grid控件使用属性定义定义如何做和显示 本教程示范如何绑定WP Property Grid控件到数据和创建属性定义。 执行如下步骤 第一步-创建属性定义 添加PropertyGridControl组件到项目。 打开工具箱在vs定位到DX.23.1: Data 面板选择PropertyGridControl工具箱选项拖动到窗口。 右键点击Property Grid选择Layout | Reset All填充全部窗口 第二步-创建数据对象 创建数据对象和设置到DataContext namespace Creating_Definitions {public partial class MainWindow : Window {public MainWindow() {InitializeComponent();DataContext new Customer() {ID 1,FirstName Nancy,LastName Davolio,Gender Gender.Female,BirthDate new DateTime(1948, 8, 12),Phone 7138638137};}public class Customer {public int ID { get; set; }public string FirstName { get; set; }public string LastName { get; set; }public Gender Gender { get; set; }public DateTime BirthDate { get; set; }public string Phone { get; set; }}public enum Gender { Male, Female }} } 第三步-绑定Property Grid到Data Object 使用property grid PropertyGridControl.SelectedObject 属性绑定数据 Windowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dxprghttp://schemas.devexpress.com/winfx/2008/xaml/propertygrid x:ClassPG_lesson1.MainWindowTitleMainWindow Height250 Width525Griddxprg:PropertyGridControl SelectedObject{Binding} //Grid /Window 步骤四-创建属性定义 添加属性定义到Property Grid.设置PropertyGridControl.ShowProperties属性ShowPropertiesMode.WithPropertyDefinitions隐藏未定义属性 Windowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:sysclr-namespace:System;assemblymscorlibxmlns:dxehttp://schemas.devexpress.com/winfx/2008/xaml/editorsxmlns:dxprghttp://schemas.devexpress.com/winfx/2008/xaml/propertygrid x:ClassPG_lesson1.MainWindowTitleMainWindow Height250 Width525Griddxprg:PropertyGridControl SelectedObject{Binding} ShowPropertiesWithPropertyDefinitions dxprg:PropertyDefinition Typesys:String /dxprg:PropertyDefinition PathGender /dxprg:PropertyDefinition PathBirthDate //dxprg:PropertyGridControl/Grid /Window 运行程序看到结果
http://www.sadfv.cn/news/249232/

相关文章:

  • 四川营销网站建设北京网络科技公司
  • 怎么免费自己做网站把网站内的文本保存到txt怎么做
  • WordPress导出单页上海外包seo
  • excel做网站二维码设计字体设计
  • 怎样找到网站建设设置模板wordpress 用户信息
  • 网站重大建设项目公开发布制度中国机械加工网下载
  • 蒙阴做网站网页设计基础括号代码大全
  • 电商论坛网站模板推广项目
  • 网站建设相关语言wordpress显示全部标签
  • 为什么打开网址都是站长工具网站包括哪些主要内容
  • 网站链接结构有哪些做冒菜店网站
  • 网站列表页框架布局原则wordpress页面居中
  • 对于网站链接优化有哪些建议做ui设计师难吗
  • 做视频网站 带宽计算seo系统是什么
  • 深圳宝安区深圳网站建设 骏域网络手机网站设计方案
  • 一个网站完整的html代码网站建设市场介绍
  • 机械类毕业设计代做网站推荐智慧政务门户网站建设
  • 扁平化配色方案网站免费开源小程序商城源码
  • 做门面商铺比较好的网站小说网站模板html
  • 安康市网站开发线上营销课程
  • 展示互动南宁seo推广经验
  • 网站备案必须是企业吗中国建设劳动学会监制网站
  • 海南省住房和城乡建设厅官网网站首页龙溪营销型网站制作
  • 做养生哪个网站有客人WordPress导航栏目删除
  • 庆阳网站哪里做网站维护的协议
  • 用花生棒自己做网站网站服务器人多怎么挤进去
  • 西安市长安区规划建设局网站简述网站制作的过程
  • 做团购网站需要注册哪些商标注册公司名字有没有重复在哪可以查
  • 外贸人常用网站网站设计中建设规划和准备阶段
  • 江阴公司做网站常德seo招聘