Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    Magnus Lindhe
    @mgnslndh
    Is there a way of knowing if a DragablzItem is currently being dragged?
    IsDragging.
    :)
    James Willock
    @ButchersBoy
    😉
    Magnus Lindhe
    @mgnslndh
    @ButchersBoy have you used the DragablzItemsControl for selection? Items support IsSelected but the the control does not seem to support it.
    James Willock
    @ButchersBoy
    ...I'd have to go back and check...my memory
    fails me
    Magnus Lindhe
    @mgnslndh
    Thanks anyway! Im trying to figure out how to best layout a view and considering different controls and options, thats all.
    Ruslan
    @ruslanfedoseenko
    Is there any way to make Tab in TabablzControl disabled? Actualy I'm looking for MVVM correct way.
    James Willock
    @ButchersBoy
    @ruslanfedoseenko disable tab header, tab content?
    Jeremy Stafford
    @dasjestyr

    @ButchersBoy (taking it back a week or so) "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..."

    I'm not using any custom window factory; I'm just using it like the example, so I'm not sure where I would stick the break point?

    James Willock
    @ButchersBoy
    @dasjestyr handle the loaded or activated event in the window and stick a break in there
    Ruslan
    @ruslanfedoseenko
    @ButchersBoy I mean a header. If user clicks it nothing should happend(i.e no naviagation to content)
    Ruslan
    @ruslanfedoseenko
    actualy I think I need to disable both. If user is in this tab already and under some circumstances it should be disabled content of tab should not be avaliable.
    James Willock
    @ButchersBoy
    @ruslanfedoseenko yeah...You need to disable the main content...Cos if the user drag other tabs out, your disabled tab will be visible