PropertyGridHelpers
Components to help with some of the issues with dealing with a PropertyGrid control.
Install / Use
/learn @dparvin/PropertyGridHelpersREADME
PropertyGridHelpers
PropertyGridHelpers is a .NET library designed to enhance and extend the functionality of the PropertyGrid control, providing custom editors, attributes,
and utilities to facilitate property manipulation within Windows Forms applications.
Status
Features
- Custom Attributes: Define and apply custom attributes to properties for enhanced metadata representation.
- UI Editors: Implement specialized editors for complex property types within the PropertyGrid.
- Type Converters: Provide custom type converters to control property serialization and display.
- Utilities: Offer helper classes and methods to streamline PropertyGrid customization.
Installation
To include PropertyGridHelpers in your project, add the following line to your .csproj or .vbproj file:
<PackageReference Include="PropertyGridHelpers" Version="2024.12.20.3" />
Alternatively, use the .NET CLI:
dotnet add package PropertyGridHelpers --version 2024.12.20.3
You can also use the built in option in Visual Studio to Manage Nuget Packages for the solution or project.
Usage
After installation, you can utilize the library by importing the necessary namespaces:
using PropertyGridHelpers.Attributes;
using PropertyGridHelpers.UIEditors;
using PropertyGridHelpers.Converters;
Here's an example of applying a custom attribute to a property:
public class SampleClass
{
public enum sampleEnum
{
[EnumImage("SampleImage1")]
[EnumText("Sample Image # 1")]
Entry1,
[EnumImage("SampleImage2")]
[EnumText("Sample Image # 2")]
Entry2
}
[Editor(typeof(ImageTextUIEditor<sampleEnum>), typeof(UITypeEditor))]
[TypeConverter(typeof(EnumTextConverter<sampleEnum>))]
public sampleEnum SampleEntries { get; set; }
}
For detailed usage and examples, refer to the documentation.
Contributing
Contributions are welcome! Please read the contributing guidelines for more information.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
Special thanks to the contributors and the open-source community for their invaluable support and inspiration.
Related Locations
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
