How to support editing file path properties in the properties window
I've implemented a simple property page by extending SettingsPage. One of my custom properties is a string that representes a file path, like so:
[Category("Test")]
[Description("Path to a test file")]
[DisplayName("Test File path")]
public string MyFilePath
{
get {returnthis.myFilePath; }
set {this.myFilePath=value; this.IsDirty = true; }
}
How do I support the editing of this file path property beyond a simple text string?
I'm trying to emulate the editing capability of a property such as the "Working Directory" property from a C++ project's Debugging configuration properties group. In this case the Working Directory property can be edited in place as a string or via a drop down menu which has a "<Browse>..." and an "<Edit>..." item for browsing and editing a file path. How can I implement this type of capability for my custom property?
Many thanks!
Eric

