Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ethan Smith
    @ethanhs
    never mind, I think I found it
    Ethan Smith
    @ethanhs
    Hey, I have TabablzControl, and it is data bound
    I have styled it so the tabs are a certain width, but I want the last tab (a + button essentially), to have a narrower width
    any suggestions? (Also, thanks so much @ButchersBoy for your awesome library)
    James Willock
    @ButchersBoy
    @IronManMark20 HeaderSuffixContent
    Ethan Smith
    @ethanhs
    Ah! Thanks.
    Ethan Smith
    @ethanhs
    @ButchersBoy Any updates on #20? If not do you have any partial xaml/code? I would love to be able to see this. Thanks!
    Ethan Smith
    @ethanhs
    Never mind, I might do it myself
    Ruslan
    @ruslanfedoseenko
    Does some one tries to test TabablzControl with UI Automation? I have a problem with it. It is not possible to access to children elements.
    Shawn Anderson
    @shawnmanderson
    Our team has noticed the same thing about UI Automation but I have not had time to look into it yet. Would love to know what you find out!
    Artur
    @l1pton17
    How can i obtain a list of tabs (viewmodels) in the same order as in a TabablzControl?
    James Willock
    @ButchersBoy
    You can listen to changes using a PositionMonitir
    Or use the layout query stuff
    (Check the demo) ...I think the layout query sorts...Can't quite remember 😃
    okatip1
    @okatip1
    Hi, I am using tablzcontrol, boundexample. When i drag out a tab, application freezing and dont response for 5 seconds, after 5 seconds it seperates the windows normally. How can i a figure out this problem
    Also while drag in a tab into a window, same problem. It is waiting 5 sec
    okatip1
    @okatip1
    I realized that, every drag in or drag out to/from window, creates window and fill all data again, the tab i drag out has the data already why we need this?
    James Willock
    @ButchersBoy
    This is WPF...you have to account for the way the logical tree arranged, measured, drawn...it's never going to be as fast as some C++ application with some kind of "fixed" layout. Typically in MVVM the visual tree is going to be re-created as a new Window is created and the content bound to your view model...that's the way WPF works. However, I can say that I've got some pretty complex applications using it and runs well. It could well depend on what stuff you have in your application....for example, how long does your app take on start up? Are you running extra stuff on the UI thread when a Window/UserControl is created? How sync or async is your app?
    ...basically, what I'm saying is, what's running on your UI thread, that you can make async? cos' that's where you'll find performance gains.
    okatip1
    @okatip1
    Ok, how can i disable this feature?
    James Willock
    @ButchersBoy
    Which feature?? You need to understand your own code...when a user control or window loads...what are you doing? Querying a database? Hitting a service?
    okatip1
    @okatip1
    Dragging out a tab from the window feature
    James Willock
    @ButchersBoy
    I see...yes you can...1, remove the InterTabController, 2 use FixedItemCount
    okatip1
    @okatip1
    Thank you very much
    Last question sir:)
    James Willock
    @ButchersBoy
    HeaderSuffixContent. Add an empty Grid with a Width set.
    Artur
    @l1pton17
    @ButchersBoy is there any reason of why we don't have PositionMonitor property inside TabablzControl?
    Maybe i do it wrong, but without a PositionMonitor property, i had to use reflection
        private void ProjectViewLoaded(object sender, RoutedEventArgs e)
        {
            typeof(TabablzControl).GetField("_dragablzItemsControl", BindingFlags.NonPublic | BindingFlags.Instance)
                .With(v => v.GetValue(ProjectTabablz))
                .With(v => v as DragablzItemsControl)
                .Do(v =>
                {
                    var monitor = new HorizontalPositionMonitor();
                    monitor.OrderChanged += MonitorOrderChanged;
                    v.PositionMonitor = monitor;
                });
        }
    James Willock
    @ButchersBoy
    Yeah...at that point it's kinda hidden...But there's an issue outstanding to provide better events.
    okatip1
    @okatip1
    Hi, I want to get clicked tab header index, I tried customheaderitemtemplate but the mousedown event is not firing. Here is the code
    James Willock
    @ButchersBoy
    probably the image or textblock is swallowing the event. try setting IsHitTestVisible to False for those items. I can recomment Snoop for that; you can see what is handling an event
    okatip1
    @okatip1
    I tried this. Nothing happened. When I click a tab header with right click, fires the tablzcontrol mouse down event not the header. And nothing happens when i click with left button, even the tablzcontrol mousedown event.
    okatip1
    @okatip1
    Also I tried to bind mousedown to textbox and image with ishittestvisible true.. Same.. nothing fired.
    James Willock
    @ButchersBoy
    @okatip1 are you on latest? i thinnk i did a fix for this. also, that prop is obsolete, you should just use HeaderItemTemplate
    okatip1
    @okatip1
    When I changed it to headeritemtemplate my textbox and image gone. Only my bound object name appeared on header item
    If you do any example about getting the tab index of the clicked tab header. I will very thankfull to you and pray also:) I want to do this last four days. I stucked. Can you do this in your demo project?
    Shawn Anderson
    @shawnmanderson

    I made some changes recently so that our app is loading a lot of tabs at startup - these are heavy operations, UI blocking, etc. This has caused me to start getting a strange exception:

    System.InvalidCastException: Specified cast is not valid.
    at Dragablz.Converters.ShowDefaultCloseButtonConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture) in C:\projects\dragablz\Dragablz\Converters\ShowDefaultCloseButtonConverter.cs:line 22

    I dug into it, and found that occasionally (not always?) the values will contain DependencyProperty.UnsetValue. Did some research as to what would cause that, and nothing came up as the silver bullet. Watching my binding errors in Output window clearly showed the problem:

    System.Windows.Data Warning: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Dragablz.TabablzControl', AncestorLevel='1''. BindingExpression:Path=ShowDefaultCloseButton; DataItem=null; target element is 'Button' (Name=''); target property is 'Visibility' (type 'Visibility')
    System.Windows.Data Warning: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Dragablz.TabablzControl', AncestorLevel='1''. BindingExpression:Path=FixedHeaderCount; DataItem=null; target element is 'Button' (Name=''); target property is 'Visibility' (type 'Visibility')

    Any ideas on how this could be resolved on my side? If not - would there be concerns with adding some type checking to the Convert method to handle UnsetValue or do you want that to Exception? Thanks!

    James Willock
    @ButchersBoy
    @shawnmanderson yeah...probably make the converters bit safer...can you raise a PR for that one and I can review it?
    okatip1
    @okatip1
    Hi, how can i decrease the tabs width while increasing the counts of the tabs, like in gooogle chrome?
    James Willock
    @ButchersBoy
    Hi all, FYI I'm on holiday for a bit, so I'm not ignoring issues and PRs...will catch up later
    okatip1
    @okatip1
    Enjoy your holiday, breathe, rest :smile:
    barecool
    @barecool
    Hi there, I'm having an issue where if i drag a tab out of the main window it spawns a new window which is expected but if you close the main parent window the child with the tab stays open, shouldn't it close when the main application closes(parent window)?
    James Willock
    @ButchersBoy
    No. Not by default anyway. If you want to do that manage it yourself.
    @barecool for example...your internet browser doesn't do that.
    okatip1
    @okatip1
    Hi, I have a problem. I wrote in stackoverflow. Have you any idea?
    I have been researching this last 1 week and I stuck. Nothing found