Can plants use Light from Aurora Borealis to Photosynthesize? I would like to show some animation of button, before click event of button is fired. Loading this in the FileLoadDemo, checking the "Enable animation" checkbox and then selecting an animation using the dropdown works fine. Then the message and image that are on the first window may disappear. wpf loading animation button click Data dodania: 20 sierpnia 2021, 20:50 This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL), BackgroundWorker_DoWork is not an event. The calling thread cannot access this object because a different thread owns itand Next I have tried This: but again my program will freeze or lock until process this :`string.IsNullOrEmpty(MAH.Text)` and animation will stop, in One Drive :s!Aq2vCYipSlKYggAypH3MeVMIMV5I. How can I create a "Please Wait, Loading" animation using jQuery? As there is no animation, you might feel the loading is taking ages. This is useful for creating loading icons such as a spinning icon. In the Configure your new project give it a meaningful project name like WpfLoadingAnimation and then click on Create button. This code is logically strictly equivalent to not handling any exceptions here, only wastes time. You can read more about the bindings here: Data Binding (WPF) .