AvaloniaUtils / DialogHost.Avalonia

AvaloniaUI control that provides a simple way to display a dialog with information or prompt the user when information is needed
MIT License
228 stars 15 forks source link

Dialog is still present in the visual tree after second opening #30

Closed alessandrofrancesconi closed 1 year ago

alessandrofrancesconi commented 1 year ago

I'm seeing a strange behavior using DialogHost.Avalonia 0.7.1 + Avalonia 11.0.0-preview6 (cross platform solution).

Basically if one open a dialog, then closes it, then opens it again, then closes it, the dialog's content remains present in the main visual tree.

I've prepared a sample application to show it (please test the Desktop or Android project) DialogHostTest.zip

Also a video of the issue: https://we.tl/t-zLkYAVr5cH

SKProCH commented 1 year ago

Seems like this error was there a couple of time... Kinda super-strange.

SKProCH commented 1 year ago

Wow, there is a surprise, that animations with fill mode Forward or Both will set last values with priority Local, so it can't be overridden in any styles way