Results 1 to 40 of 47

Thread: Expandable Props [RESOLVED]

Threaded View

  1. #33
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Re: Expandable Props - Minor Drawing/Coloring Issue

    If you're control is inheriting from UserControl or Control it
    should have an Invalidate method which triggers a Paint event.

    Either way, it doesn't matter, you must have something in your control
    that gets called when you want it to draw itself, if so, then that's what you want
    to call in the Set of the expandable property in your control.

    Those methods that just return True are called by the IDE to see if your
    class supports certain things, like supplying a list of the sub-properties and
    creating instances of your class.

    Regards,

    - Aaron.

    Edit: Re-reading your post makes me think that maybe you thought the Invalidate call would be in the converter class, it's not,
    it's in your UserControl when you expose the property of type GradientStyle. - Aaron.
    Last edited by Aaron Young; Apr 1st, 2005 at 11:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width