<?xml version="1.0"?>
<ArrayOfCustomProperty xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CustomProperty>
<Name>My Integer</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:int">100</Value>
<Description>This is an integer</Description>
<Category>Simple properties</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>My Double</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:double">10.4</Value>
<Description>This is a double</Description>
<Category>Simple properties</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>My String</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:string">My Value</Value>
<Description>This is a string</Description>
<Category>Simple properties</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>My Date</Name>
<ReadOnly>true</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:dateTime">2006-05-05T00:00:00</Value>
<Description>This is date class</Description>
<Category>Simple properties</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>My Enum</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:int">0</Value>
<Description>Work with Enum too!</Description>
<Category>Simple properties</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>My Password</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:string">password</Value>
<Description>This is a masked string.
(This feature is available only under .NET v2.0)</Description>
<Category>.NET v2.0 only</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>true</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>false</UseFileNameEditor>
<FileNameFilter />
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
<CustomProperty>
<Name>Filename</Name>
<ReadOnly>false</ReadOnly>
<Visible>true</Visible>
<Value xsi:type="xsd:string">D:\My Documents\notes.txt</Value>
<Description>This property is a filename path. It define a custom UITypeConverter that show a OpenFileDialog or a SaveFileDialog when the user press the 3 dots button to edit the value.</Description>
<Category>Properties with custom UITypeEditor</Category>
<IsBrowsable>false</IsBrowsable>
<BrowsableLabelStyle>lsEllipsis</BrowsableLabelStyle>
<IsPassword>false</IsPassword>
<IsPercentage>false</IsPercentage>
<UseFileNameEditor>true</UseFileNameEditor>
<FileNameFilter>Text files (*.txt)|*.txt|All files (*.*)|*.*</FileNameFilter>
<FileNameDialogType>LoadFileDialog</FileNameDialogType>
<ValueMember />
<DisplayMember />
<IsDropdownResizable>false</IsDropdownResizable>
</CustomProperty>
</ArrayOfCustomProperty>
没有合适的资源?快使用搜索试试~ 我知道了~
Add Custom Properties to a PropertyGrid
共49个文件
cs:18个
xml:6个
resx:3个
需积分: 9 15 下载量 19 浏览量
2009-08-29
14:10:26
上传
评论
收藏 170KB ZIP 举报
温馨提示
Add Custom Properties to a PropertyGrid.c#属性有用的例子。 http://www.codeproject.com/KB/vb/PropertyGridEx.aspx
资源推荐
资源详情
资源评论
收起资源包目录
PropertyGridExCS.zip (49个子文件)
PropertyGridEx.CS
PropertyGridEx
UIFilenameEditor.cs 2KB
CustomPropertyCollection.cs 8KB
PropertyGridEx.csproj 3KB
CustomProperty.cs 19KB
PropertyGridEx.xml 139B
bin
Release
PropertyGridEx.dll 44KB
PropertyGridEx.csproj.user 168B
CustomColorScheme.cs.bak 6KB
obj
PropertyGridEx.Designer.cs 1KB
Properties
AssemblyInfo.cs 1KB
UIListboxEditor.cs 5KB
CustomPropertyCollectionSet.cs 796B
My Project
Application.myapp 481B
Settings.settings 279B
Resources.resx 5KB
CustomColorScheme.cs 6KB
PropertyGridEx.cs 9KB
CustomChoices.cs 4KB
UICustomEventEditor.cs 2KB
BrowsableTypeConverter.cs 2KB
CustomProperty.cs.bak 18KB
TestApp
books.xml 752B
frmMain.Designer.cs 19KB
bin
Release
PropertyGridEx.dll 44KB
books.xml 752B
PropertyGridEx.xml 122B
Items.dat 4KB
Items.xml 5KB
TestApp.vshost.exe.config 2KB
TestApp.exe.config 2KB
TestApp.vshost.exe 6KB
books.xsd 848B
TestApp.exe 168KB
TestApp.csproj 4KB
obj
Properties
Settings.settings 431B
Settings.Designer.cs 1KB
AssemblyInfo.cs 1KB
Program.cs 476B
frmMain.cs 33KB
frmMain.Designer.vb 15KB
My Project
Application.myapp 471B
Settings.settings 434B
Resources.resx 5KB
ExamplesClasses.cs 3KB
app.config 2KB
books.xsd 848B
frmMain.resx 196KB
TestApp.xml 848B
PropertyGridEx.sln 1KB
共 49 条
- 1
资源评论
lanruoshui
- 粉丝: 92
- 资源: 59
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- javaweb毕业设计-java作业管理系统设计(源代码+lw)(可做课程设计).rar
- 我的自己111111111
- 判断一个数是否为质数以及通过C语言实现.docx
- IPv4-HEADER-03 测试数据
- 高级网络人才培训专家-X00070005 第32章 ISDN和DCC
- 高级网络人才培训专家-X00070004 第31章 配置帧中继
- IPv4-HEADER-02测试数据
- tensorflow-2.6.2-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-2.6.2-cp37-cp37m-win-amd64.whl
- RV180-Firmware-1.0.5.4.img
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功