Skip to content
New issue

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

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

Already on GitHub? # to your account

Handle CanClose and CanHide in XAML #188

Merged
merged 2 commits into from
Aug 21, 2020

Conversation

bdachev
Copy link
Contributor

@bdachev bdachev commented Aug 17, 2020

Here's another set of changes improving behavior when anchorable is docked in document area.
In original code there was a bodge using SetCanCloseInternal/ResetCanCloseInternal methods to store and restore CanClose state during window drag-drop operation. With my changes that bodge is removed and instead style for LayoutDocumentTabItem is improved in per theme XAMLs to react properly on CanClose = false and CanHide = true and use HideCommand instead of Close Command.

... and modify XAML in themes to react on CanClose = false and CanHide = true and use HideCommand instead of Close Command
@Dirkster99 Dirkster99 merged commit 9e0b0fb into Dirkster99:master Aug 21, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants