It is sometimes interesting to have an animated icon to tell to our user that their command is actually processing. Typically for a refresh icon. So, two solution: you could use an animated GIF and use an external library like WpfAnimatedGif (or the XAML MediaElement), or use an rounded icon (like this one) and create your own animation based on a rotation.

This is a simple way to animated an image with a rotation:

<StackPanel Orientation="Vertical" Margin="20">
    <Button Content="Start" Command="{Binding StartCommand}" Margin="5" />
    <Button Content="Stop" Command="{Binding StopCommand}" Margin="5" />
    <Image Source="NavRefresh.png" Width="32" Height="32" Margin="5">

            <Style TargetType="{x:Type Image}">
                <Setter Property="LayoutTransform">
                        <RotateTransform Angle="0"/>

                    <DataTrigger Binding="{Binding Status}" Value="Running">
                                    <DoubleAnimation Storyboard.TargetProperty="(LayoutTransform).(RotateTransform.Angle)"
                                <Storyboard FillBehavior="Stop">
                                    <DoubleAnimation Storyboard.TargetProperty="(LayoutTransform).(RotateTransform.Angle)"
                                                     Duration="0:0:0" />

Code language: HTML, XML (xml)

And here is the View Model:

using Prism.Commands;
using Prism.Mvvm;

namespace ImageAnimation
    public class MainWindowVM: BindableBase
        #region  Properties

        private string _status;
        public string Status
            get { return _status; }
            set { SetProperty(ref _status, value); }


        #region Commands

        private DelegateCommand _startCommand;
        public DelegateCommand StartCommand =>
            _startCommand ?? (_startCommand = new DelegateCommand(Start));

        private DelegateCommand _stopCommand;
        public DelegateCommand StopCommand =>
            _stopCommand ?? (_stopCommand = new DelegateCommand(Stop));


        public MainWindowVM()
            this.Status = "Not started yet";

        private void Start()
            this.Status = "Running";

        private void Stop()
            this.Status = "Stopped";
Code language: C# (cs)

If you prefer to animate some text, please have a look at this post.

Happy coding!  🙂