Posted 15 years ago
by SledgeHammer01
Version: 10.1.0523
Platform: .NET 4.0
Environment: Windows XP (32-bit)

I defined a property like this:
[Category("Starting Page Filter"), DisplayName("Valid Images")]
[Description("Path to images that match this template.")]
[Editor(typeof(DialogTextBoxPropertyEditor), typeof(PropertyEditor))]
public String ValidImagesStart
{
get
{
return _template.ValidImagesStart;
}
set
{
_template.ValidImagesStart = value;
SyncCOMObject();
}
}
I point the property grid to the object that contains this property. Everything works fine.
I add propGrid.IsReadOnly in the code behind and all the built in properties go to read-only mode as expected. The DialogTextBoxPropertyEditor items remain enabled.
Actually, its just the button thats not disabled.
[Modified at 08/25/2010 06:05 PM]
[Category("Starting Page Filter"), DisplayName("Valid Images")]
[Description("Path to images that match this template.")]
[Editor(typeof(DialogTextBoxPropertyEditor), typeof(PropertyEditor))]
public String ValidImagesStart
{
get
{
return _template.ValidImagesStart;
}
set
{
_template.ValidImagesStart = value;
SyncCOMObject();
}
}
I point the property grid to the object that contains this property. Everything works fine.
I add propGrid.IsReadOnly in the code behind and all the built in properties go to read-only mode as expected. The DialogTextBoxPropertyEditor items remain enabled.
Actually, its just the button thats not disabled.
[Modified at 08/25/2010 06:05 PM]