These are chat archives for ButchersBoy/Dragablz

25th
Feb 2016
Artur
@l1pton17
Feb 25 2016 12:53
@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
Feb 25 2016 12:58
Yeah...at that point it's kinda hidden...But there's an issue outstanding to provide better events.
okatip1
@okatip1
Feb 25 2016 15:44
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
Feb 25 2016 19:42
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
Feb 25 2016 20:07
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
Feb 25 2016 20:13
Also I tried to bind mousedown to textbox and image with ishittestvisible true.. Same.. nothing fired.
James Willock
@ButchersBoy
Feb 25 2016 23:14
@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
Feb 25 2016 23:45
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?