SizeToContent should work after window loaded