From 231d52b7cef47a78d2d8e51de3c6b10dea20382d Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Thu, 30 Jan 2025 18:28:24 +0100 Subject: [PATCH] Tweaks --- .../Controls/HomePage/Header/AnimatedImage.xaml | 10 ++++++++-- .../Controls/HomePage/Header/AnimatedImage.xaml.cs | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml b/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml index bc5e48f1..cca774f9 100644 --- a/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml +++ b/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml @@ -10,7 +10,13 @@ mc:Ignorable="d"> - - + + diff --git a/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml.cs b/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml.cs index be7705b0..6b8e6e3b 100644 --- a/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml.cs +++ b/AIDevGallery/Controls/HomePage/Header/AnimatedImage.xaml.cs @@ -35,7 +35,7 @@ protected virtual void IsImageChanged(Uri oldValue, Uri newValue) private void OnIsImageChanged() { BottomImage.Source = new BitmapImage(this.ImageUrl); - AnimationSet selectAnimation = [new OpacityAnimation() { From = 1, To = 0, Duration = TimeSpan.FromMilliseconds(1000) }]; + AnimationSet selectAnimation = [new OpacityAnimation() { From = 1, To = 0, Duration = TimeSpan.FromMilliseconds(800) }]; selectAnimation.Completed += (s, e) => { TopImage.Source = new BitmapImage(this.ImageUrl);