ghost1372 / HandyControls

Contains some simple and commonly used WPF controls based on HandyControl
https://ghost1372.github.io/
MIT License
1.1k stars 104 forks source link

[Feature request] Theme change animation #140

Closed GliczDev closed 1 year ago

GliczDev commented 2 years ago

Hi, i think that handycontrols should have theme change animation like winui, because now it's only changing color without any effect, and it looks really bad.

ghost1372 commented 1 year ago

tnx Added use like this:

internal void UpdateSkin(ApplicationTheme theme)
        {
            ThemeAnimationHelper.AnimateTheme(HandyControlDemo.MainWindow.Instance, ThemeAnimationHelper.SlideDirection.Top, 0.3, 1, 0.5);

            ThemeManager.Current.ApplicationTheme = theme;

            ThemeAnimationHelper.AnimateTheme(HandyControlDemo.MainWindow.Instance, ThemeAnimationHelper.SlideDirection.Bottom, 0.3, 0.5, 1);

        }