Skip to content

Provide a way to get the Min / Max / Close- Button positions #7460

Description

@timunie

Is your feature request related to a problem? Please describe.
I like the idea to render extend into the title bar and keep the system chrome alive with the Min/ Max/ Close buttons. Then I would like to place content like Tabs into the TitleBar. the issue I have is, that I cannot now how much space I have to reserve for the system window Buttons or on which side they are (I think on Mac they are on a different side then for Windows)

Describe the solution you'd like
A property on the Window which tells me where some reserved space is, for example:

ReservedSpace[] ReservedSpaces = new ReservedSpace[] 
{ 
     new ReservedSpace (width: 75, height: 20, Position: Position.TopRight)
};

Describe alternatives you've considered

  • Hardcode these properties
  • Use custom buttons, but I learned that this is not a good idea, especially on Linux

Additional context
See also: https://docs.avaloniaui.net/tutorials/music-store-app/creating-a-modern-looking-window

/cc @danwalmsley @ahopper this is a follow-up issue from our discussion on telegram.

Happy coding
Tim

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions