Using custom panel window dragging works only in the first line

Docking/MDI for WPF Forum

Posted 11 years ago by Blank
Version: 13.1.0582
Avatar

Hi,

we are using custom panel for multiline tab header, while using custom panel window dragging works only in the first line.

In this sample unable to drag and drop document window ("Main 12") in between "Main 10" & "Main 9"

 

<Window x:Class="WpfApplication4.MainWindow"
        xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="300">
    <Grid>
        <docking:DockSite x:Name="dockSiteObj" ItemContainerRetentionMode="Wrapped">
            <docking:SplitContainer>
                <docking:Workspace>
                    <docking:TabbedMdiHost x:Name="tabbedMdiHost" TabPlacement="Bottom" >
                        <docking:TabbedMdiContainer Background="AntiqueWhite" TabOverflowBehavior="None">
                            <docking:DocumentWindow Title="Main 1" />
                            <docking:DocumentWindow Title="Main 2" />
                            <docking:DocumentWindow Title="Main 3" />
                            <docking:DocumentWindow Title="Main 4" />
                            <docking:DocumentWindow Title="Main 5" />
                            <docking:DocumentWindow Title="Main 6" />
                            <docking:DocumentWindow Title="Main 7" />
                            <docking:DocumentWindow Title="Main 8" />
                            <docking:DocumentWindow Title="Main 9" />
                            <docking:DocumentWindow Title="Main 10"/>
                            <docking:DocumentWindow Title="Main 11"/>
                            <docking:DocumentWindow Title="Main 12"/>
                            <docking:TabbedMdiContainer.Style>
                                <Style TargetType="docking:TabbedMdiContainer">
                                    <Setter Property="ItemsPanel">
                                        <Setter.Value>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Orientation="Horizontal"/>
                                            </ItemsPanelTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </docking:TabbedMdiContainer.Style>
                        </docking:TabbedMdiContainer>
                    </docking:TabbedMdiHost>
                </docking:Workspace>
            </docking:SplitContainer>
        </docking:DockSite>
    </Grid>
</Window>

 Is there any way to solve this issue?

Thanks

Comments (7)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, I'm sorry but the code that controls reordering within the same container right now assumes that a single row of tabs is used.  It's not considering Y locations at this time.  Unfortunately all that code is internal so there isn't any external workaround either.


Actipro Software Support

Posted 11 years ago by Blank
Avatar

Hello,

1) Can we extend that class to achive this feature, if possible please provide me the details of that class

2) How can i disable the reordering, when i set the CanDocumentsDrag property in TabbedMdiHost to False is disabling the docking feature also, i need to disable only reordering.

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Sorry but the logic is deep in our docking code and there are no extensibility points for it.  Also there is no option for tab reordering at this time.

If you'd like, email our support address with a new simple sample project showing the issue and we can look to see how hard it would be to enhance our logic to handle the multi-row tab scenario.  Please reference this post and rename the .zip file extension so it doesn't get spam blocked.  Thanks!


Actipro Software Support

Posted 11 years ago by Blank
Avatar

Hello,

I just sent the sample project to reproduce this issue.

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Thanks for the sample, we'll improve this for the 2013.2 version.


Actipro Software Support

Posted 11 years ago by Blank
Avatar

I would like to know when will be the release of version 2013.2?

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

We're hoping to get it out by the end of the month or shortly after.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.