These are chat archives for ButchersBoy/Dragablz

2nd
Jun 2015
CharismaRise
@CharismaRise
Jun 02 2015 13:09
Best tab control project on the web! I have downloaded your dragablz package from Nuget and was able to create a tab control with MahApps. Is there an easy way to turn on the close buttons on the tabs?
James Willock
@ButchersBoy
Jun 02 2015 13:19
Yes. :)
ShowDefaultCloseButton="True"
CharismaRise
@CharismaRise
Jun 02 2015 13:24
Awesome, works! Now last thing, is there a way to disable close button only on the first tab?
James Willock
@ButchersBoy
Jun 02 2015 13:24
@charismarise you will be
Yes
Sorry...typing on my mobile
Yes you can "manage" the close button
Have a look at my git repo DragablzSamplez. In there is a project called "OptionalCloseButton"
CharismaRise
@CharismaRise
Jun 02 2015 13:26
So that can only be achieved via MVVM?
James Willock
@ButchersBoy
Jun 02 2015 13:27
You could do it via code or XAML...but I recommend MVVM
CharismaRise
@CharismaRise
Jun 02 2015 13:28
Great, thank you for your help!
James Willock
@ButchersBoy
Jun 02 2015 13:28
Np
If your next question is "how can I stop first tab being dragged"...keep your eye on demo as I will be setting up an example for someone else this week.
CharismaRise
@CharismaRise
Jun 02 2015 13:36
Thanks!
James Willock
@ButchersBoy
Jun 02 2015 20:35
@CharismaRise et al: I've just added a FixedHeaderCount property so you can set this to 1 to lock your first tab. Easier than dealing with optional close button templates