Tuesday, January 19, 2010

MeasureOverride()?!

So for whatever reason, the ResizingAdorner example is capable of getting away with this:


protected override Size MeasureOverride(Size constraint)
{
return base.MeasureOverride(constraint);
}


However, when I tried the example listed from the previous post, it does NOT work if you just call the base MeasureOverride(). Why that is, exactly, I have no damn clue yet. But it's annoying as hell. So I'm realizing the big problem is that I haven't done this measuring bit properly, and that's why I get a size of 0 available to be when it gets to the ArrangeOverride. Hopefully I'll be able to put my code back to the way it was and see what happens!

No comments:

Post a Comment