private void HideNotification(int delay)
        {
            DoubleAnimation da = new DoubleAnimation
            {
                From      = 0.9,
                To        = 0,
                BeginTime = TimeSpan.FromMilliseconds(delay),
                Duration  = TimeSpan.FromMilliseconds(500)
            };

            da.Completed += (s, a) => StatusContainer.Visibility = Visibility.Hidden;
            StatusContainer.BeginAnimation(OpacityProperty, da, HandoffBehavior.SnapshotAndReplace);
        }
        private void ShowNotification()
        {
            DoubleAnimation da = new DoubleAnimation
            {
                From     = 0,
                To       = 0.9,
                Duration = TimeSpan.FromMilliseconds(500)
            };

            da.Completed += (s, a) => HideNotification(4000);
            StatusContainer.Visibility = Visibility.Visible;
            StatusContainer.BeginAnimation(OpacityProperty, da, HandoffBehavior.SnapshotAndReplace);
        }