Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jeremy Stafford
    @dasjestyr
    I'm having a weird problem where if I tear a tab out, it just spawns a new window instead of bringing up the drop zones. It opens new windows as I drag (i.e. if I drag 400 pixels away, it'll open like 10 windows). I'm not sure when it started, but it was working one moment and then started doing this the next and has been this way ever since. I've seen this happen before and never fixed it. Has anyway seen this behavior?
    James Willock
    @ButchersBoy
    @dasjestyr maybe stick a breakpoint in where the window gets created and post (or look at the call-stack)? The nugget package includes source so you might be able to step back and get some more clues...
    @Hektorrr not sure I understand your current issue...
    Hektorrr
    @Hektorrr

    @ButchersBoy : Thank You for fast response!
    My issue step by step :

    1. Open window with Dockablz and Dragablz. ( at start there is one opened tab )
    2. Add new tab ( so now I have two )
    3. Grab one tab, and dock it on the right ( for example )
    4. Grab already docked tab and try to 'undock' it .
    5. My app crashes with exception throwed at "newTabablzControl.Items.Clear();" in DefaultInterTabClient class ( but I have my own InterTabClient class implementation like in examples ).

    I know it's hard to guess what can be wrong, but I need only clue to investigate.
    Best regards!

    James Willock
    @ButchersBoy
    @Hektorrr @dasjestyr ...if you guys post sample projects on Git i will try and take a look
    Hektorrr
    @Hektorrr
    @ButchersBoy : Thank You, but I don't want to bother You... Best regards!
    James Willock
    @ButchersBoy
    Have you looked in DragablzSamplez how it applies the InterTabClient, so that it direct get lost on new windows?
    Ruslan
    @ruslanfedoseenko
    Hi I have an Issue with dragablz:TabablzControl.
    I use it in separte window(dialog) and want to resue the DialogViewModel because recreation of it is expencive.
    When window is closed ItemSource is cleared
    Here is CallStack where it is Cleared
     Dragablz.dll!Dragablz.Core.CollectionTeaser.Remove(object item) Line 63    C#
     Dragablz.dll!Dragablz.TabablzControl.RemoveFromSource(object item) Line 606    C#
     Dragablz.dll!Dragablz.TabablzControl.WindowOnClosing(object sender, System.ComponentModel.CancelEventArgs cancelEventArgs) Line 828    C#
    Ruslan
    @ruslanfedoseenko
    Have looked into code. Probably when ConsolidateOrphanedItems control dont take into account witch window is closed owner one or child window when tab is taken away.
    Hektorrr
    @Hektorrr
    @ButchersBoy : Oh, I solved it... I just download latest version of Dragablz and remove old one from references...
    Dragablz is amazing :)
    Best regards :)
    Svetlozar Stoichkov
    @svstoichkov
    Is it possible to disable tearing of the tabs ?
    James Willock
    @ButchersBoy
    Yes. Remove InterTabController or use FixedHeaderCount
    Magnus Lindhe
    @mgnslndh
    I was looking at the demo for Dragablz and I have a question about the DragablzItemsControl.
    To drag an item I need to do it through its Thumb control. Lets say I render a couple of cards in the DragablzItemsControl. Can I have the whole card be the thumb somehow? Thumb is not a ContentControl so I cannot put the card into it.
    Magnus Lindhe
    @mgnslndh
    I solved it by putting the Thumb and ContentPresenter in a grid. Thumb last in the grid and stretched out with zero opacity. Works like a charm.
    James Willock
    @ButchersBoy
    :+1: ...yeah...it was designed so you could manage your own thumbs
    Magnus Lindhe
    @mgnslndh
    @ButchersBoy the Card is placed in a DragablzItemsControl which uses a Canvas for layout. The canvas itself is stretched as far as I can tell but I guess a Card on a canvas will not stretch itself, even if HorizontalAlignment is set to stretch?
    Does DragablzItemsControl support other panels than Canvas for its ItemsPanel?
    Magnus Lindhe
    @mgnslndh
    Guess it does but it does not work well for me... ok, food for thought:
    The DragablzItemsControl is great for presenting material cards that can be reordered. But it would be nice to have HorizontalContentAlignment property and have it calculate the width of a child item if set to Stretch. But I guess it is also a matter of which Organizer is in use. But it would work well with the VerticalOrganiser.
    James Willock
    @ButchersBoy
    Ok...glad to hear someone putting the actual items control to use 😃 ...i use it for that kind of stuff a lot myself. Do you wanna log that as a feature request issue? Might take a little while for me to get to it though.
    Magnus Lindhe
    @mgnslndh
    Sure, i'll create an issue.
    If I want to disable dragging of any item onthe DragablzItemsControl, how do I do that? Right now I bind the .Count property of the collection bound to ItemsSource, to FixedItemsCount
    James Willock
    @ButchersBoy
    That's one way, other way is to re template and remove the thumb
    Just thought of a work around for your stretch. You can do a relative source binding to ancestor DragablzItemsControl from width to ActualWidth. You might have to provide a converter so you can add some padding in.
    Magnus Lindhe
    @mgnslndh
    I tried that binding Width on my card to the ActualWidth of its relative ancestor Canvas but that sloved things down to a halt.
    Ok, but thanks for the suggestion. I am using a hardcoded width for now and that will work until the new feature is implemented #77
    Magnus Lindhe
    @mgnslndh
    About disabling dragging. It would be nice to disable dragging with a property of the ItemsControl. Would you consider that as a feature request? As for now I will solve it by styling
    Oh, and the PART_DragElement what is the purpose of that? In the sample you have it on a control that is not the content presenter... I thought it representet the actual content being dragged.
    James Willock
    @ButchersBoy
    Which sample? Can't find it...can't even remember. PART_Thumb is the important bit.
    Magnus Lindhe
    @mgnslndh
    I would like to be able to reorder items in DragablzItemsControl by ICommand.
    Like move an item up or down when organized vertically.
    James Willock
    @ButchersBoy
    That's old I think. Has no meaning.
    Magnus Lindhe
    @mgnslndh
    Ok, I will remove PART_DragElement name from my code
    James Willock
    @ButchersBoy
    Like a kind of shunt up shunt down thing?
    Magnus Lindhe
    @mgnslndh
    Yes, if you mean like pushing one item up/down one position (in vertical context)
    The display order of items only seems to be changable by dragging.
    The tab control listens to notifications from the item source and moves tabs accordingly. But I cannot find a way of doing this with the DragablzItemsControl
    Is there any way of changing the order from code, preferably via mvvm?
    Magnus Lindhe
    @mgnslndh
    Oh, must say I love gitter. Just found out I could edit my last comment by pushing the Up-key :)
    James Willock
    @ButchersBoy
    Not so easy on a phone...
    Svetlozar Stoichkov
    @svstoichkov
    Hello! How can I adjust the spacing between tab items? http://i.imgur.com/F4BSOPt.png
    Svetlozar Stoichkov
    @svstoichkov
    Thanks, that helped me. Now I have another question. How do I remove that annoying dotted line which show that the TabControl has focus. The line is only visible when the TabControl is in dialoghost
    James Willock
    @ButchersBoy
    Same for any WPF control you can set FocusVisualStyle to null...or pay the focus/tabbing properties