stackPanel autoReize support
relayout StackPanel when item's visible changed
code style