Comments (6)
Fix for "select correct tab after you close one" cannot be accepted in its current state. It assumes that each tab is killed when it is closed, however you can have tabs that simply hide themselves on close rather than destroy themselves on close. This leads to funny behavior, most notably that a tab that was previously hidden will reappear when the last visible tab is closed.
from dockpanelsuite.
Submitted a revised change.
New class, DockContentCollection.ContentSelector() does the work - and handles the case where content is hidden.
Uses this whenever the visible state of content is changed, so if you programmatically call "IsHidden" on content, it will work.
Tested all the cases I could think of - let me know if you have any further issues.
from dockpanelsuite.
I was too quick uploading that. It didn't work with our improved middle click - where you can middle click to close a tab that isn't selected - and it doesn't change the selection.
I'll upload a new set of changes for this soon.
from dockpanelsuite.
OK, so new set of changes up for selecting the correct tab when you close content. Copes with HideOnClose being true, and copes with the case where you are closing content that isn't selected. Next to upload will be our revised middle-click close fix, that doesn't select the tab before closing it.
from dockpanelsuite.
Sorry this has been hanging out here for a while. I'm concerned this might be a bandaid for a deeper issue but haven't had the opportunity to fully form that opinion yet.
from dockpanelsuite.
Not a problem. I was a little concerned after realising we hadn't coped with documents that were hidden rather than closed - and had to rethink what we had to cope with.
If its of any use, that change has been in our code now for a while and has been released, and hasn't caused any problems.
I promise I'll get around to adding our better fix for middle-click close soon.
from dockpanelsuite.
Related Issues (20)
- RichTextBox lose color during float HOT 4
- How can I show the float window contents while dragging with the mouse?
- ArgumentException: hrgn HOT 1
- Console App Icon
- Dockpanelsuite won't display icon HOT 1
- How to hide auto hide button? HOT 1
- I don't know how to activate the old tab HOT 1
- how to hide close button? HOT 3
- [ObjectListView_Keyboard]: Upon tab navigation the keyboard focus is not moving to column headers and list items. HOT 2
- Could not load type ContextMenu HOT 1
- DockPanel Presence of margins HOT 2
- The Close and Auto Hide buttons are not scaled in 4K screen with 200% DPI HOT 3
- Problem with Menu's HOT 2
- After closing the present form, which way can I activate previous form? HOT 1
- bug
- How to dock multiple panels side by side
- Please help me to run and apply this framework in my project HOT 2
- Can anyone have work in saving a panel layouts? like there's a default view and there is a custom view of panel layout and it can saved, so if you open the application, the last view saved will be the panel layout view HOT 3
- Question: Client area of a DockContent
- where wpf demo? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockpanelsuite.