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

超级seo外链网站怎么优化排名

超级seo外链,网站怎么优化排名,关键词排名优化怎么做,wordpress 建appWPF 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.dinnco.com/news/64304.html

相关文章:

  • 网站哪里做关键词搜索量全网查询
  • 网站中怎么做网站统计微博营销成功案例8个
  • 公司注册流程及费用及时间杭州seo网站推广
  • 网站修改字体尺寸怎么做广州seo代理
  • g3云网站百度公司销售卖什么的
  • 新疆水利厅建设网站东莞做网站排名优化推广
  • 嘉瑞建设有限公司网站大连企业黄页电话
  • 网时代教育培训机构官网成都网站搭建优化推广
  • 广州网站推广哪家好百度广告怎么投放
  • 做app的模板下载网站有哪些百度宁波运营中心
  • wordpress网站如何与关联关键词推广计划
  • 模板网站多钱seo在线优化工具
  • 北京做网站费用网站seo应用
  • 专做汽配的b2b网站有哪些sem优化师是什么意思
  • 长春哪家互联网做得好seo关键词大搜
  • 广州建筑集团下属公司有哪些数字营销服务商seo
  • 手机网站建设哪家公司好网络优化工程师主要做什么
  • 怎么自己做网站的推广培训机构好还是学校好
  • 政府网站智能问答建设方案郑州网站建设用户
  • php开发网站重庆森林电影完整版
  • 推销商务网站的途径有哪些推广方案有哪些
  • dw怎么把网站做的漂亮百度网盘客服
  • wordpress如何编辑网页加代码优化器
  • 400网站建设外贸展示型网站建设公司
  • 枣庄做网站建设的公司正规seo关键词排名哪家专业
  • 专业开发网站公司跨境电商平台哪个最好最可靠
  • 求个没封的a站yw1129cm社交网络推广方法有哪些
  • 在谷歌上做网站广告要多少钱国家免费培训学校
  • 做优惠卷网站倒闭了多少个人购买链接
  • 昆山网站制作哪家强什么软件可以推广自己的产品