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); diff --git a/AIDevGallery/Controls/HomePage/Header/HeaderCarousel.xaml b/AIDevGallery/Controls/HomePage/Header/HeaderCarousel.xaml index 45cbfbfb..6e8ee900 100644 --- a/AIDevGallery/Controls/HomePage/Header/HeaderCarousel.xaml +++ b/AIDevGallery/Controls/HomePage/Header/HeaderCarousel.xaml @@ -9,6 +9,7 @@ xmlns:media="using:CommunityToolkit.WinUI.Media" xmlns:wuc="using:WinUICommunity" Loaded="UserControl_Loaded" + Unloaded="UserControl_Unloaded" mc:Ignorable="d"> @@ -68,12 +69,13 @@ - - - - - + Visibility="Visible"> + + + + + +