FluentWPF icon indicating copy to clipboard operation
FluentWPF copied to clipboard

Suggestion:Add the delay showing Acrylic effect for the Popup control!

Open wuyang26 opened this issue 5 years ago • 3 comments

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.

wuyang26 avatar Feb 15 '20 03:02 wuyang26

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.

sourcechord avatar Feb 29 '20 04:02 sourcechord

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.

wuyang26 avatar Jun 08 '20 09:06 wuyang26

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();

wuyang26 avatar Jun 08 '20 09:06 wuyang26