Skip to content

Hidden close & resize buttons when ExtendClientAreaToDecorationsHint is True and WindowsState is Maximized #16714

Closed
@marcb152

Description

@marcb152

Describe the bug

In the latest version of AvaloniaUI (11.1.3), the application caption buttons in the upper right corner are invisible at startup. They become visible after resizing the window (Windows + Arrow keys).
On version 11.0.6 it worked as expected (close and resize buttons were visible right after starting the application).

To Reproduce

  • Create a new Avalonia .NET App (AvaloniaUI) OR a new Avalonia .NET MVVM App (AvaloniaUI)
  • Add ExtendClientAreaToDecorationsHint="True" and WindowState="Maximized" to the MainWindow.axaml
  • Launch the app, the close & resize buttons are visible as expected
  • Run NuGet Package Manager and update all Avalonia packages to 11.1.3
  • Once updated, launch the app, the buttons are no longer visible

Expected behavior

The caption buttons (close and resize buttons in the upper right corner) should be visible immediately after launching the application.

Avalonia version

11.1.3

OS

Windows

Additional context

I can send screenshots & code examples if required.

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