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

网站后台 黑链接wordpress 主题 知乎

网站后台 黑链接,wordpress 主题 知乎,成功案例 网站,搭建网站不用服务器吗WPF Property Grid控件使用属性定义定义如何做和显示 本教程示范如何绑定WP Property Grid控件到数据和创建属性定义。 执行如下步骤 第一步-创建属性定义 添加PropertyGridControl组件到项目。 打开工具箱在vs,定位到DX.23.1: Data 面板,选择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 属性绑定数据

<Windowxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:dxprg="http://schemas.devexpress.com/winfx/2008/xaml/propertygrid" x:Class="PG_lesson1.MainWindow"Title="MainWindow" Height="250" Width="525"><Grid><dxprg:PropertyGridControl SelectedObject="{Binding}" /></Grid>
</Window>

步骤四-创建属性定义

添加属性定义到Property Grid.设置PropertyGridControl.ShowProperties属性ShowPropertiesMode.WithPropertyDefinitions,隐藏未定义属性:

<Windowxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:sys="clr-namespace:System;assembly=mscorlib"xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"xmlns:dxprg="http://schemas.devexpress.com/winfx/2008/xaml/propertygrid" x:Class="PG_lesson1.MainWindow"Title="MainWindow" Height="250" Width="525"><Grid><dxprg:PropertyGridControl SelectedObject="{Binding}" ShowProperties="WithPropertyDefinitions" ><dxprg:PropertyDefinition Type="sys:String" /><dxprg:PropertyDefinition Path="Gender" /><dxprg:PropertyDefinition Path="BirthDate" /></dxprg:PropertyGridControl></Grid>
</Window>

运行程序看到结果

http://www.yayakq.cn/news/253922/

相关文章:

  • 四川网站营销seo费用网络教学平台长沙理工
  • 温岭专业营销型网站建设地址青岛模板网站建设
  • 怎么做球球业务网站智慧团建系统登录网站
  • 像素点建网站遨游网站建设
  • 成都微信微网站建设平面设计专用网站
  • 石家庄手机网站合肥seo网站多少钱
  • 中型电商网站维护费用句容市建设工程管理处网站
  • 沈阳网站哪家公司做的好wordpress中标签作用
  • 网站如何建立数据库建设工程个人信息采集哪个网站
  • 备案期间 网站想正常wordpress 5.0.4
  • 网站建设东莞长安镇网站建设的分工
  • 怎么做网站才能不被仿冒百度关键词搜索排名查询
  • 有哪些网站建设工作室专业做算命网站
  • 国外最大的设计网站有哪些方面网络营销是什么模式
  • 网站开发技术的比较钓鱼网站制作教程
  • 网站的运营管理方案简单html网页制作
  • 岳阳建设局网站阿里云服务器做网站需要备案
  • 高端网站开发平台单页面个人网站
  • 淘宝客如何新建网站so域名网站
  • ps做网站首页步骤北京昌平网站设计
  • org是国外的网站吗怎么做可上传图片的网站
  • 网站免费获取验证码怎么做网站引用百度地图
  • 响应式 网站 设计软件计算机网络网站建设的实训总结6
  • 学做美食的网站视频个人宽带备案网站
  • 建设网站需要多少钱济南兴田德润o厉害吗广州 网站开发 公司电话
  • 建设公司网站 优帮云电子商务网站规划的原则是什么
  • wordpress厨房家居主题seo公司哪家便宜
  • 品牌型网站建设网站建设和实现论文
  • 企业备案的网站名称小程序微信怎么开发
  • 合肥网站建设培训5网站建设