feat: revert mask animation for dialog.

This commit is contained in:
rabbitism
2024-11-13 00:34:21 +08:00
parent 9b3be2d44e
commit 27a3e5fb41

View File

@@ -112,6 +112,7 @@ public partial class OverlayDialogHost
SetToPosition(control);
control.AddHandler(OverlayFeedbackElement.ClosedEvent, OnDialogControlClosing);
control.AddHandler(DialogControlBase.LayerChangedEvent, OnDialogLayerChanged);
// Notice: mask animation here is not really awaited, because currently dialogs appears immediately.
if (!IsAnimationDisabled) MaskAppearAnimation.RunAsync(mask);
var element = control.GetVisualDescendants().OfType<InputElement>()