FluentWPF
FluentWPF copied to clipboard
Suggestion:Add the delay showing Acrylic effect for the Popup control!
when the Popup control use the slide animation,the Acrylic effect and the animation are not synchronized,the Acrylic effect will show immediately,so should delay in order to the same.
Hi @wuyang26
Thanks for the feedback 😃
I have recognized this issue.
It is very difficult to support PopupAnimation property with AcrylicPopup control.
I'll try to support it . But, it may become a limitations of FluentWPF.
Here's another way:when moving or resize the window,set the parameter for "ACCENT_ENABLE_BLURBEHIND",Other circumstances set the parameter for "ACCENT_ENABLE_ACRYLICBLURBEHIND", I test ,it is ok! but if in the moving window exist a acrylic popup,it is terrible,mayby set the parameter for ACCENT_DISABLED when moving.
Sorry, I answered another question in this title. for the popup animation,I think using the PropertyChangedCallback,for example:call OnIsAcrylicChanged(),then add popup.Opened += new EventHandler(ThemeEffectsHelper.PopupOpened),at last like the following: DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromMilliseconds(duration); timer.Tick += (x, y) => { //to do timer.Stop(); timer = null; //to do }; timer.Start();