I am having some memory issues in my application that I am troubleshooting right now. I can see in Visual Studio memory snapshot tool that there is a reference between the tabablzcontrol and the main window after I have removed my view. So it seems my view is kept in memory because it has a ref chain to the main window which is still alive and kicking.
Magnus Lindhe
@mgnslndh
I'll make a patch and see if that works but I'd like your take on this so I am not misunderstanding the TabablzControl
It could be that the event handler will be cleaned up as soon as there are no references to the View and thats was causing my problem. Not sure though
Magnus Lindhe
@mgnslndh
Ok, I can at least confirm that the ref goes away if I remove the event handler on the window by disposing the _windowSubscription on Unload
Submitted a tiny PR for this ButchersBoy/Dragablz#111
feinstein
@feinstein
Hi, I am new to the project, I was going over the examples, but I can't find some documentation explaining the different parts in detail, like when the dockblz should be used and these basic things
Am I missing some website with this kind of introduction?
James Willock
@ButchersBoy
@feinstein no, there isn't really such a summary at the moment. The Dockablz.Layout is only needed if you want to have horizontal/vertical splitting, and floating windows.
feinstein
@feinstein
What do you mean by splitting?
Like visual Studio docking you
Docking? *
James Willock
@ButchersBoy
@feinstein it's a simplified version of docking
feinstein
@feinstein
OK, thanks!
mbowles201
@mbowles201
Did a simple cut and paste of the example with 2 tabs. If I am careful, i can drag the tabs side to side and change order, if I miss or purposely try to tear out to its own window, it throws an error: "Exception has been thrown by the target of an invocation. Unable to ascrtain tab control" Anyone getting this right out the gate?
_
James Willock
@ButchersBoy
@mbowles201 usually means that when it creates a new window it can't find the TabablzControl. So usually means that the setup is quite right... anything different with your Window etc compared to the examples?
Magnus Lindhe
@mgnslndh
@ButchersBoy sorry to bother you with this, but have you had time to look at #111 yet? Simple change to remove event handler on Unload as described above.
James Willock
@ButchersBoy
Yeah sorry... Will try and look this week..
mbowles201
@mbowles201
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.
mbowles201
@mbowles201
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.
Suman Dhakal
@sdhakal
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?
Suman Dhakal
@sdhakal
This message was deleted
Andre Rosenthal
@camou23
hi is there a posibilty to use dragablz with mahapps animated tabcontrol?
James Willock
@ButchersBoy
@camou23 ... Two different controls... So no direct compatibility
muktiwww
@muktiwww
why tab header event mouse up dragabalz not working??
James Willock
@ButchersBoy
Because it does a lot more with mouse than the standard tab control... It doesn't all behave the same...
Seyden
@Seyden
can i make a togglebutton looks like a cube?
instead of a circle?
theparker
@theparker
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?
James Willock
@ButchersBoy
@theparker /all. --summer holidays--
theparker
@theparker
Have fun. Been able to figure it out :smile:
Douglas Gadêlha
@dgadelha
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
Artur
@l1pton17
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?
James Willock
@ButchersBoy
Hmmm.... Should only move the Window if there is a single tab... Sounds likea bug...
Magnus Lindhe
@mgnslndh
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.
Magnus Lindhe
@mgnslndh
Could also be i'm doing some styling that no play well with the new version :)
Magnus Lindhe
@mgnslndh
Changing background on the TabControl did the trick.