Comments (17)
The reason it's there is because I was having trouble with sizing/measuring of the tab header strip, tabs pushing up - and then over - towards the standard Window buttons & scroll bars, all cuasing a bit of a layout issue.
Yes...it's not right, but there is some history behind it.
I'll try and revisit it, resolve the underlying issue and remove the default.
from dragablz.
gotya .. i'm kind of in the same position now.
I'm trying to get the dragablzitemscontrol to size properly, and I got it to work partly, but that kind of stuff is always a pita.
from dragablz.
I'll try and improve...
from dragablz.
@mrfrostfire which style and window are you using?
from dragablz.
I only need the dragablz for the ability to drag tabs around, so i've tried to keep it as native as possible.
So i'm just using it as a tabcontrol with ability to drag tabs around if that helps.
from dragablz.
Btw, I used the MaterialDesign style as the base and have modified it to what we need it for.
There's still problems with the sizing though causing limitations due to the meassureoverride etc.
I get that the canvas is causing issues due to it not reporting any size. But can't that be solved by specifying it's width/height based on the content inside instead of having a meassureoverride on the itemscontrol etc?
from dragablz.
The MeasureOverride in DragablzItemsControl is a pretty fundamental requirement to figure out how big the content is, according to the IItemsOrganiser; which is plug-able.
from dragablz.
ok, then just replacing it might be a bit hard.
So here's the issue i'm currently at:
We want to have the tabs inside a scrollviewer to be able to do horizontal scrolling if there's not enough room to fit all the tabs into the area.
While doing that, we want to have the defaultaddbutton flowing to the right of the tabs as it is per default.
The addbutton however should be outside the scrollviewer as it should always be visible.
I haven't been able to find any combination of that scenario that works, since either the addbutton is pushed out because the itemscontrol takes up too much space, or it gets aligned wrong.
Do you have any suggestions?
from dragablz.
Can you post a sketch of that?
My intent is to remove the default suffix, and rework the style a bit, so when I do that I'll try and get your requirement working.
from dragablz.
Here's a pic of the header using styled dragablz before the scrollviewer is activated and after.
I hope that helps
The scrollviewer is styled to have a button on the left and right side of the itemscontrol to scroll them forth and back.
And thanks!
from dragablz.
Nice theme 👍
from dragablz.
Thanks :)
from dragablz.
So yeah, turned out to be a 1 liner, where I wasn't measuring the default add button when calculating the size of the header strip, so incoming will give you this:
from dragablz.
GitHub auto-closes issue...but please let me know if this is OK with your style...
from dragablz.
i'll try it out asap .. probably tomorrow
from dragablz.
Thank you! Worked like a charm.
Since I have the scrollviewer around the dragablzitemscontrol, I moved the maxwidth binding to the scrollviewer and bound the dragablzitemscontrols maxwidth to its own ItemPresenterWidth.
This makes sure to compensate for any additional size the scrollviewer might take up.
from dragablz.
👍
from dragablz.
Related Issues (20)
- TabablzControl crashes when no tab items are present
- close button can't show HOT 1
- Dockablz layout does not show Dropzones when inside NavigationView
- Need to update SecondaryAccentBrush to SecondaryHueMidBrush
- Tabablz Item Template unable to set Tab title. Just shows as path to item template source HOT 1
- [Question] drag and drop between two or more lists HOT 2
- Documentation of classes
- MoveWindowWithSolitaryTabs issue
- TabablzControl SelectedIndex binding catches all exception from bound property
- Button in TabItem header
- is there a way to make dragablztabcontrol NOT TEARABLE?
- Layout: Cannot change FloatingItem Content
- How we can do this? : Open forms in different threads and then move the mainwindow all other forms must be move with them in wpf.
- MDI: New added floating item will not show at the front.
- .Net 7 Issue
- Throws System.Reflection.TargetInvocationException while dragging a tab when the tabs are created using ItemsSource.
- handling Default close button HOT 1
- Equal width for all tabs
- Brush renames on MaterialDesignInXAML 5.0.0 HOT 1
- Disposing closed tab
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 dragablz.