Great framework you have developed @ButchersBoy. I use FontAwesome in my WPF app with Dragablz.Mahapps.MaterialDesigns and is it possible to have font awesome icon in my tabItem header text?
James Willock
@ButchersBoy
@Bennith yes... You don't have to put text in there, usual WPF rules apply. You could put a grid, or an object with available data template
Svetlozar Stoichkov
@svstoichkov
Hello! I am binding TabablzControl to an observable collection in my view model. How can I change the header content of each tab? With the regular TabControl I can set an ItemTemplate, but it doesn't appear to be working with TabablzControl. Thank you
Scyssion
@Scyssion
You can make a DataTemplate for the Header content such as:
ButchersBoy/Dragablz#117 Any update on this issue?
My MainWindow is a MetroWindow Control that could be the issue
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Window', AncestorLevel='1''. BindingExpression:Path=Background; DataItem=null; target element is 'TabablzControl' (Name=''); target property is 'Background' (type 'Brush')
James Willock
@ButchersBoy
added a comment
Alejandro Alvarez
@alealvarez14
Hi, first of all, great work!. Unlucky me, I have an issue here. First, I have a MainWindow with a main tab. Then, this main window has a floating item list, which at certain point I add a tab to it. Up to this point it works perfect. When I expand the floating item, and a window is created, whenever I try to dock it to main window, it shows an empty tab, and my tab (without header). I'm using MVVM pattern with MVVMLight toolkit. Any suggestions?
James Willock
@ButchersBoy
Uhm....
You probably will have to post a repo
Alejandro Alvarez
@alealvarez14
quick question, maybe it'll help you, help me out. In my mainwindow, I have a DataContext bound to it (ViewModel1). And the new window, has another, completely different view model attached to it (ViewModel2). Maybe, when I dock the new window in a split view, because it has ViewModel2, MainWindow does not recognizes this view model?
James Willock
@ButchersBoy
Yes... You have to be very careful with your data context. 1. Use Snoop to double check what you have. 2. For any non trivial scenario you probably need to implement a IInterTabClient.
Alejandro Alvarez
@alealvarez14
Ok thanks
I also downloaded the Doobry repo. And in some scenarios, it happens quite the same bug.
James Willock
@ButchersBoy
Can you record a gif of it happening in doobry?
Michael Plainer
@plainerman
In your "BasicExampleWindow" - demo you have a horizontal and a verticalorganiser. Is there a way to make a vertical and horizontal organiser? For example you have a 3 by 3 grid, where each element can be positioned individually (and the first element of the first row could theoretically be changed with the last element of the last row)?
James Willock
@ButchersBoy
do you mean like a wrap panel?
Michael Plainer
@plainerman
Yes, the arrangement of a wrappanel would also be suitable, but is it possible to drag the items freely and not only in one direction?
Similar to a canvas organiser but with auto align and transitions
_
James Willock
@ButchersBoy
@plainerman yeah, don't currently have an organiser which does that
christian russo
@christianrusso
Hello, how can I do to block tab swich?
James Willock
@ButchersBoy
You don't. Is not supported. What happens if the user drags a tab out and leaves your blocked tab exposed? It's an anti pattern. However, you could probably do it if you insist by changing the header template and suppressing a click or something
christian russo
@christianrusso
ok, I understood
and can I block drag a tab out ?
James Willock
@ButchersBoy
All tabs or a single tab?
christian russo
@christianrusso
All tabs
James Willock
@ButchersBoy
Remove the InterTabController
christian russo
@christianrusso
perfect!
one more, can I hide a tab?
I try with visibility="hidden" but not work
James Willock
@ButchersBoy
No, sorry, that's not implemented, you have to revive it entirely
christian russo
@christianrusso
ok, thanks!
ABHall
@abhall724
ButchersBoy/MaterialDesignInXamlToolkit#380
I believe I have found this bug in the latest stable version. If you have the same packicon on two different pages it will not load the icon for the second page
James Willock
@ButchersBoy
@abhall724 sample repo please
ABHall
@abhall724
I had to add x:Shared="False" to the PackIcon object and Clean/Rebuild the Solution to get it to finally work
@ButchersBoy Our QA automation team is testing a version of dragablz built with an additional line of code to hopefully allow UI automation tools to find the elements correctly within the tabs. I know at least one other person was interested in this subject. if it pans out would you consider adding the following code to the TabablzControl top level? I can do a PR too, thought i'd check first since it's a 1-liner
I'm working on a application where each window/tab should have a horizontal list of icons, that can be dragged between windows. The kicker being that these icons does not have any content associated. So what i really need is icons that can be dragged between windows, seperately from the other tab/partition. Does anyone have any ideas about how this can be achieved? I'm currently looking at the MotionList example - would that be a good way to implement this?
James Willock
@ButchersBoy
@Moulde you can acheive this... But you have to put a bit of work in yourself. Basically, you create a custom tab control style, which has no main content display area.
Also, you can check out Gong Drag and Drop. Depends what effect you want. This library will give you the animated re ordering.
Malte Baden Hansen
@Moulde
@ButchersBoy Ah yes, that's what i ended up trying. Is it enough to change the ContentTemplate for the TabablzControl, to an empty DataTemplate? To disable the main content display area? Thanks for the Gong drag and drop, I'l have that as a plan B.