Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement for title bar and window commands #3503

Merged
merged 4 commits into from May 24, 2019

Conversation

punker76
Copy link
Member

@punker76 punker76 commented May 20, 2019

Describe the changes you have made to improve this project

If there are more then 2 or 3 window commands on the right or left site and the user resizes the window then the Min, Max, Close buttons move out the window and open dialogs will not resize to a slower size.

To solve this I changed the window commands control from ItemsControl to ToolBar class which allows us to use the overlow mechanism of this control.

  • The default and centered window style will now use this new overflow mechanism.

Additional context

These changes causes also a breaking change to the window commands overlay behavior. This feature will be removed, because a window command can now not overlay a Flyout if it's open.

Closed Issues

Closes #1936
Closes #3408

mahapps_titlebar_overlap

mahapps_title_overlow

@punker76 punker76 added this to the 2.0.0 milestone May 20, 2019
If there are more then 2 or 3 window commands on the right or left site and the user resizes the window then the Min, Max, Close buttons move out the window and open dialogs will not resize to a slower size.

To solve this I changed the window commands control from ItemsControl to ToolBar class which allows us to use the overlow mechanism of this control.

The default window style is now changed to use this new mechanism.

These changes causes also a breaking change to the window commands overlay behavior. This feature will be removed, because a window command should not overlay when a Flyout is open.

The clean centered style still needs changes for the centered title behavior.
The centered window title style works now also with the new window commands overflow mechanism.
- Improve toggle button mouse over and checked visual (change background and foreground)
- Fix binding for Foreground and Background of the inner controls of the WindowCommandsItem
The 'ParentWindowCommands' must not be a static property.
@punker76 punker76 changed the title WIP Improvement for title bar and window commands Improvement for title bar and window commands May 24, 2019
@punker76 punker76 merged commit 2dc993c into develop May 24, 2019
@punker76 punker76 deleted the feature/TitleBar_Overflow branch May 24, 2019 21:54
punker76 added a commit that referenced this pull request May 28, 2019
…havior_Breaking_change

Change window commands overlay behavior after title bar changes (GH-3503)
punker76 added a commit that referenced this pull request May 29, 2019
Before the new title bar feature the default overlay behavior for Left and Right window commands was set to Flyouts.

To get the same result the new default must now set to Never.

The parent DockPanel also doesn't need set their height to the title bar height.
punker76 added a commit that referenced this pull request May 29, 2019
…avior

The new default behavior is Never, so this test should test for this too.
punker76 added a commit that referenced this pull request May 29, 2019
…d event

Fix possible exception which can occurred during a resize together with the centered window template. This can be happen if there is a custom window template different to the default ones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

In InputDialog,The button is partially invisible. Title bar button should overlap WindowCommands
1 participant