public void GoBack(System.Windows.Controls.Frame view) { var currentContent = (UIElement)view.Content; if (currentContent == null) { return; } Frame.GoBack.Enabled = false; var fadeOutAnimation = new DoubleAnimation(0d, TimeSpan.FromSeconds(0.25)); fadeOutAnimation.Completed += (o, e) => { view.GoBack(); Frame.GoBack.Enabled = true; }; currentContent.BeginAnimation(UIElement.OpacityProperty, fadeOutAnimation); }