Property initialization problem
I'm trying to make a control with two properties related to each other. The size, and the rounded-corner radius. Obviously, you can't choose a corner radius greater than min(width, height).. and you can't choose a width or height less than corner-radius.
The problem is that the designer initializes the properties in their alphabetical order (meaning that CornerRadius is set BEFORE Size).. so if its value is invalid before setting the new size, an exception will be thrown.
I want to make the designer set the Size before the CornerRadius.. Can I do this?
|