Skip to content

Loss of window drag capability when setting ShowTitlebarBackground to False #65

@CarlosEGuerraSilva

Description

@CarlosEGuerraSilva

Describe the bug
Setting ShowTitlebarBackground to False removes the ability to drag and move the maximized or normal window; it is only possible to resize, minimize, and maximize from a normal/maximized state.

To Reproduce
Steps to reproduce the behavior:

  1. Add <shadui:Window />
  2. Set ShowTitlebarBackground property to false
  3. It is now impossible to drag and move the window from the Titlebar

Expected behavior
The window should be able to be dragged and moved independently of the normal/maximized state.

Screenshots
N/A, it's a behavior bug

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 22H2 19045.6216

Additional context
This might be because controls with a transparent background or an undefined value lose pointer events like click, hover, drag, etc.
One possible solution I can think of is to use the BackgroundColor when the value is False, or to set the BackgroundColor to the lowest possible opacity/alpha value so that it remains interactive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions