Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ABHall
    @abhall724
    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')
    James Willock
    @ButchersBoy
    added a comment
    Alejandro Alvarez
    @alealvarez14
    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?
    James Willock
    @ButchersBoy
    Uhm....
    You probably will have to post a repo
    Alejandro Alvarez
    @alealvarez14
    quick question, maybe it'll help you, help me out. In my mainwindow, I have a DataContext bound to it (ViewModel1). And the new window, has another, completely different view model attached to it (ViewModel2). Maybe, when I dock the new window in a split view, because it has ViewModel2, MainWindow does not recognizes this view model?
    James Willock
    @ButchersBoy
    Yes... You have to be very careful with your data context. 1. Use Snoop to double check what you have. 2. For any non trivial scenario you probably need to implement a IInterTabClient.
    Alejandro Alvarez
    @alealvarez14
    Ok thanks
    I also downloaded the Doobry repo. And in some scenarios, it happens quite the same bug.
    James Willock
    @ButchersBoy
    Can you record a gif of it happening in doobry?
    Michael Plainer
    @plainerman
    In your "BasicExampleWindow" - demo you have a horizontal and a verticalorganiser. Is there a way to make a vertical and horizontal organiser? For example you have a 3 by 3 grid, where each element can be positioned individually (and the first element of the first row could theoretically be changed with the last element of the last row)?
    James Willock
    @ButchersBoy
    do you mean like a wrap panel?
    Michael Plainer
    @plainerman
    Yes, the arrangement of a wrappanel would also be suitable, but is it possible to drag the items freely and not only in one direction?
    Similar to a canvas organiser but with auto align and transitions
    James Willock
    @ButchersBoy
    @plainerman yeah, don't currently have an organiser which does that
    christian russo
    @christianrusso
    Hello, how can I do to block tab swich?
    James Willock
    @ButchersBoy
    You don't. Is not supported. What happens if the user drags a tab out and leaves your blocked tab exposed? It's an anti pattern. However, you could probably do it if you insist by changing the header template and suppressing a click or something
    christian russo
    @christianrusso
    ok, I understood
    and can I block drag a tab out ?
    James Willock
    @ButchersBoy
    All tabs or a single tab?
    christian russo
    @christianrusso
    All tabs
    James Willock
    @ButchersBoy
    Remove the InterTabController
    christian russo
    @christianrusso
    perfect!
    one more, can I hide a tab?
    I try with visibility="hidden" but not work
    James Willock
    @ButchersBoy
    No, sorry, that's not implemented, you have to revive it entirely
    christian russo
    @christianrusso
    ok, thanks!
    ABHall
    @abhall724
    ButchersBoy/MaterialDesignInXamlToolkit#380
    I believe I have found this bug in the latest stable version. If you have the same packicon on two different pages it will not load the icon for the second page
    James Willock
    @ButchersBoy
    @abhall724 sample repo please
    ABHall
    @abhall724
    I had to add x:Shared="False" to the PackIcon object and Clean/Rebuild the Solution to get it to finally work
    Shawn Anderson
    @shawnmanderson
    @ButchersBoy Our QA automation team is testing a version of dragablz built with an additional line of code to hopefully allow UI automation tools to find the elements correctly within the tabs. I know at least one other person was interested in this subject. if it pans out would you consider adding the following code to the TabablzControl top level? I can do a PR too, thought i'd check first since it's a 1-liner
    '''
    protected override AutomationPeer OnCreateAutomationPeer()
    {
    return new FrameworkElementAutomationPeer(this);
    }
    '''
     protected override AutomationPeer OnCreateAutomationPeer()
            {
                return new FrameworkElementAutomationPeer(this);
            }
    James Willock
    @ButchersBoy
    Yeah, you can submit a PR for that.
    Malte Baden Hansen
    @Moulde
    I'm working on a application where each window/tab should have a horizontal list of icons, that can be dragged between windows. The kicker being that these icons does not have any content associated. So what i really need is icons that can be dragged between windows, seperately from the other tab/partition. Does anyone have any ideas about how this can be achieved? I'm currently looking at the MotionList example - would that be a good way to implement this?
    James Willock
    @ButchersBoy
    @Moulde you can acheive this... But you have to put a bit of work in yourself. Basically, you create a custom tab control style, which has no main content display area.
    Also, you can check out Gong Drag and Drop. Depends what effect you want. This library will give you the animated re ordering.
    Malte Baden Hansen
    @Moulde
    @ButchersBoy Ah yes, that's what i ended up trying. Is it enough to change the ContentTemplate for the TabablzControl, to an empty DataTemplate? To disable the main content display area? Thanks for the Gong drag and drop, I'l have that as a plan B.
    @ButchersBoy By the way, what could cause dragging a tab out into its own window, to repeatedly create new windows, on top of the old one, but with the same tabs, esentially duplicates of the old window? I'm trying to use the TabablzControl in a MVVM application, and I have tried to follow the "BoundExampleWindow.xaml" in the "DragablzDemo.net45" project. But something (the above issue...) tells me that i may have accidently skipped a step or something.
    James Willock
    @ButchersBoy
    Hmmm yeah, something to do with your IInterTabClient or InterTabController not providing a new window in a proper fashion...
    Malte Baden Hansen
    @Moulde
    @ButchersBoy Ok thanks :)
    Svetlozar Stoichkov
    @svstoichkov
    Hello! How can I change the height of a TabItem header so it's content can fit: http://prntscr.com/e61ap3
    blob
    julesx
    @julesx
    i am trying to use the DragablzItemsControl and an ItemTemplateSelector
    but i can't seem to figure it out
    it seems I have to set the control template in DragalbzItemControl.ItemContainerStyle which overrides my selector