It seems all of the examples are in a Window, I assume they can be used in a UserControl as well? The examples work locally, so need to figure out what I am missing, other that I use the dragablz in a usercontrol that is used by a window after the splash screen.
Ok, same example works in my own app if the dragablz are in a window and not a userControl. Looks like I have some work in front of me.
I have a question for all the wpf developers regarding material design dialoghost in wpf. When I open a certain dialog box, some parts of the background (I mean outside of the dialog box) are not dimmed(2 buttons in my case) whereas all the other buttons are dimmed out(opacity decreased as it should be). Is this a material design dialog host issue? Is there anyone with the same issue?
This message was deleted
hi is there a posibilty to use dragablz with mahapps animated tabcontrol?
@camou23 ... Two different controls... So no direct compatibility
why tab header event mouse up dragabalz not working??
Because it does a lot more with mouse than the standard tab control... It doesn't all behave the same...
can i make a togglebutton looks like a cube?
instead of a circle?
hi @ButchersBoy , i just downloaded the Dragablz Sample app from Github and after restoring nuget packages, i get the following errors:
'MainWindow' does not contain a definition for InitialTabablzControl in InterTabClient.cs
The InitializeComponent does not exist in the current context in StylezApp does this have to do with the package version?
@theparker /all. --summer holidays--
Have fun. Been able to figure it out :smile:
Hey, is there a TabChanged event? I can't find it.
Just need to use (e.Source is Dragablz.TabablzControl) instead of TabControl
would be nice this in the documentation
I have multiple tabablz controls in my application. and i can't move the last tab in some tabablz. when i try to do it, it just moves the hole window. is there any way to make it?
Hmmm.... Should only move the Window if there is a single tab... Sounds likea bug...
Hey @butchersboy! You remember if you've changed background styling of Dragablz TabItem used with Material Design Toolkit?
I just upgraded from .150 to .170 and TabItem placed in a card that used have the card background now has the default background color instead.
Could also be i'm doing some styling that no play well with the new version :)
Changing background on the TabControl did the trick.
So I got a strange one - back in Dec there was a commit that modifies enabled state (ButchersBoy/Dragablz@860cbab). This is a good change and was actually committed by a coworker of mine. However I'm running into VERY rare situations where a closing tab gets exceptions when the enabled state is set (at MS.Win32.UnsafeNativeMethods.EnableWindow(HandleRef hWnd, Boolean enable) at System.Windows.Interop.HwndHost.OnEnabledChanged, The parameter is incorrect) - probably because the window handle is either ending up null or invalid by the point the code executes. Thoughts? I don't want to remove the code, but right now I'm considering forking and just having a hack try/catch around it. the only other thought I had was to somehow add a boolean property to conditionalize setting the child.IsEnabled, but that seemed like major overkill.
@shawnmanderson how reproducible is this?
I guess very rare :)
@ButchersBoy its tough because it has to do with WinFormsHosts, old tech, and a combination of citrix remote deskop applications :) I could try to create an application that reproduces it, might be a weekend task
Ooooh. Citrix and WinForms. Ha. Nasty combination.
Hi James... Question. For some reason TabItem's IsEnabled property doesn't work inTabablzControl. Is that just because it wasn't implemented? If yes, is there a plan to do so?
@bebenins yep, it's not implemented, because it doesnt really make sense in a scenario where you can tear tabs off...you can still be left wiith a window with your single disabled tab...which would be a wierd user experience....doesn't mean you cant disable your content though
@ButchersBoy I understand your reasoning for tearing off tabs off. In my case though, they are fixed and I trigger events (reading HW registers) when a tab is selected. But before HW is initialized, I must prevent the user from selecting certain tabs because if a tab is selected during init, there will be register access clashes. So I guess I can put some kind of "blanket" over tabs I don't want to be clicked. Anything else you can suggest? Thank you!
In the example above, the Firmware and Diags tabs must always remain enabled while others have to be controlled.
But can't you manage that in your view models (assuming you are using MVVM). If a tab isn't yet initialise, just show some temporary "loading" indicator?
Yea, I can do something like that.... Will try it. Thanks!
This message was deleted
dunno if ^ is intentional
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?
@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
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
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')
added a comment
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?