private void Window_Loaded(object sender, RoutedEventArgs e)
{
var anim = new DoubleAnimation(0, (Duration)TimeSpan.FromSeconds(Settings.FadeInTime));
anim.AccelerationRatio = 0.4;
anim.DecelerationRatio = 0.6;
anim.From = 0;
anim.To = 1;
this.BeginAnimation(FrameworkElement.OpacityProperty, anim);
}