Ваше приложение завершается, потому что std::thread
уничтожается без .detach
ed или .join
ed.
~thread();
Destroys the thread object.
If *this has an associated thread (joinable() == true), std::terminate() is called.
Замените толщину с помощью DoubleAnimation, потому что высота - это двойная, а не толщина
<Storyboard x:Key="showAnimation">
<DoubleAnimation Storyboard.TargetProperty="Height"
From="0" To="50"
DecelerationRatio=".9"
Duration="0:0:1" />
</Storyboard>