I am building a Windows WPF application that contains number of buttons. I want to notify the user that he should load a pdf before he can press other buttons by making the load pdf button blink / vibrate if the user clicks on other places and no pdf is loaded.
For example - The exact behavior happens on Microsoft Paint if you try to click anywhere outside of the edit colors box while it is open. (see attached gif)
Does anyone have an idea ?

You can use a storyboard with a
DoubleAnimation, change the drop shadow, make it go back automatically and repeat it (here 4 times).Here is a
UserControl, which you can reuse for all buttons with such effect; you only need to replace the text "Button content" by someDependencyPropertyto make it versatile.