HighTechTalks DotNet Forums  

NotifyParentPropertyAttribute not working?

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss NotifyParentPropertyAttribute not working? in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ulrich Sprick
 
Posts: n/a

Default NotifyParentPropertyAttribute not working? - 12-13-2004 , 11:18 AM






Hi,

I have created a class with some simple properties:

[TypeConverter( typeof( ExpandableObjectConverter ))]
public class My3DCoordinate{
...
protected int x, y z;
public int X { get { return this.x; } set { this.x = value; } }
public override string ToString() {
return string.Format( "3DPoint({0},{1},{2})", x, y, z );
}
}

and used it as a component property. To get ist expandable, I assigned the
expandable object converter. Works fine. Except: When I edit x/y/z, the
concise form "3DPoint(0, 1, 2)" is not updated in the forms designer
property grid.

I thought it would be enough to have the public properties X, Y and Z
decorated with the NotifyParentProperty attribute, but this has not effect
on the parent, My3DCoordinate. Only the RefreshProperties attribute seems to
have the desired effect. But I don't want to have ALL my properties
refreshed...

So, why is [NotifyParentProperty( true )] not working here? Am I missing
something?

Thanks in advance,
ulrich



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.