Skip to content

OverlappedPresenter may cause the window animation loss on opening/closing the window #10497

@ArvinZJC

Description

@ArvinZJC

Describe the bug

When disabling the title bar for a window with the overlapped presenter, the window animation is missing on opening/closing.

Steps to reproduce the bug

# Get appWindow from WindowId
appWindow.IsShownInSwitchers = false;

 if (appWindow.Presenter is not OverlappedPresenter appWindowOverlappedPresenter)
{
    appWindowOverlappedPresenter = OverlappedPresenter.Create();
    appWindow.SetPresenter(appWindowOverlappedPresenter);
} // end if

appWindowOverlappedPresenter.IsAlwaysOnTop = true;
appWindowOverlappedPresenter.IsMaximizable = false;
appWindowOverlappedPresenter.IsMinimizable = false;
appWindowOverlappedPresenter.IsResizable = false;
appWindowOverlappedPresenter.SetBorderAndTitleBar(true, false);

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.2.1: 1.2.221116.1

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions