Dynamic Properties
-
Does anyone know how I can get my property that is a member of my Component, so show up in the Dynamic Properties section of the property editor? I want to bind it to the app.config file, and I expect it to appear in the designer so I can bind easily through the IDE... (did I explain that clear enough?) Thanks! ~Steve
-
Does anyone know how I can get my property that is a member of my Component, so show up in the Dynamic Properties section of the property editor? I want to bind it to the app.config file, and I expect it to appear in the designer so I can bind easily through the IDE... (did I explain that clear enough?) Thanks! ~Steve
The following attribute will place
FirstName
within the Dynamic Properties and then the Advanced section.private string _name;
[Category("(DynamicProperties)")]
public string FirstName
{
get{return _name;}
set{_name = value;}
}- Nick Parker
My Blog | My Articles -
The following attribute will place
FirstName
within the Dynamic Properties and then the Advanced section.private string _name;
[Category("(DynamicProperties)")]
public string FirstName
{
get{return _name;}
set{_name = value;}
}- Nick Parker
My Blog | My ArticlesThanks!! "CategoryAttribute" was one I wasn't familiar with... ~Steve
-
Thanks!! "CategoryAttribute" was one I wasn't familiar with... ~Steve
You should take a look at the classes in the
System.ComponentModel
namespace for more helpful design-time attributes and more. A good section to read if you're new to design-time extensibility is Enchancing Design-Time Support[^] in the .NET Framework SDK documentation.Microsoft MVP, Visual C# My Articles
-
You should take a look at the classes in the
System.ComponentModel
namespace for more helpful design-time attributes and more. A good section to read if you're new to design-time extensibility is Enchancing Design-Time Support[^] in the .NET Framework SDK documentation.Microsoft MVP, Visual C# My Articles
Great stuff! Thanks Health and Nick. Yes, I'm new to .NET entirely, and am very impressed with what I'm seeing so far. Thanks for the tips and pointers... ~Steve