Skip to content

Impossible to toggle the visibility of TitleBar with UseNoneWindowStyle! #2338

@gigios

Description

@gigios

I have the necessity to start a window without border/control buttons/resize. To do this I have added some binding to the MetroWindow properies (UseNoneWindowStyle, IsWindowDraggable and ShowSystemMenuOnRightClick).
With this settings all works fine but when I change the property defined in the ViewModel (in binding with UseNoneWindowStyle), the ShowTitleBar property stay False!
I have checked the code and in the MetroWindow.cs, the method ToggleNoneWindowStyle, set the ShowTitleBar ONLY to false without any 'restore' to true when the useNoneWindowStyle is set to false.
Another behavior is that, if I have set a binding with the ShowTitleBar, I lose this binding!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions