WPF: How To Animate Visibility Property? In this post I’ll show you an easy way to add fade-in / fade-out effects to your user controls, when you change their Visibility property. Adding the animation is done with an attached property, so using the code will be extremely simple. Usage Sample XAML: Code Behind:privatevoid Hide_Click(object sender, RoutedEventArgs e) { Image.Visibility = Visibility.Hidden; }
privatevoid Show_Click(object sender, RoutedEventArgs e) { Image.Visibili...
1 comment posted.
#1
rmcsharry
639 days, 18 hours, 13 minutes ago said:
Extremely Useful THANKS! Saves me a bunch of time every time I use it. :)