The whipped cream is able to stay firm because of the fat content in the cream, but also the powdered sugar has a bit of starch in it which allows it to thicken up.