Two Pass Distribution System in WPF and Silverlight

Many times I saw that the code in MeasureOverrideand ArrangeOverrideis the same, except that it calls up a measure and arranges in the appropriate methods and a bit of additional logic, such as animation, etc. for each item in ArrangeOverride.

It would not be easy if you had only a way to transfer your measurement logic in one place, and the layout system remembers this and has an event when each element is about to be added, and you apply additional animation logic, etc.

Did I miss something?

+5
source share
1 answer

, .

MeasureOverride , .

ArrangeOverride , .

: , , , . , , .

, WPF . /, / . , , , , . OTOH, , , .

+9

All Articles