I just searched the web on how to animate a change in the Layout.preferredWidh / Layout.preferredHeight properties without finding anything useful. It’s not that hard but maybe could save some minutes to others, so here my solution: Just add this behavior to your element to have a nice animation during any change to the Layout.preferredWidth