Dragging display from one docksite to another fails to reallocate DisplayViewModel

Docking/MDI for WPF Forum

Posted 3 years ago by Mark Bonner
Version: 16.1.0632
Platform: .NET 4.5
Environment: Windows 10 (64-bit)
Avatar

Our application consists of dynamically created docksites and child toolwindows and follows the MVVM approach. When dragging one child toolwindow from one docksite to another, the source docksite viewmodel Displays collection is automatically decremented. However, the target viewmodel Displays collection is not incremented. Is this a known issue?

I can see further details as required.

Comments (3)

Posted 3 years ago by Mark Bonner
Avatar

Further information...

The PageDockSite XAML below shows a ToolItemsSource binding to Displays. During a drag operation from one PageDockSite to another the source decrements the Displays collection, but the target doesn't change?

<local:PageDockSite x:Name="PageDockSite"
ToolItemsSource="{Binding Displays}"
ToolItemContainerStyle="{StaticResource DisplayStyle}"
ToolWindowsHaveTabImages="False"
CanToolWindowsAttach="True"
CanToolWindowsBecomeDocuments="False"
CanToolWindowsDragToLinkedDockSites="True"
CanToolWindowsFloat="True"
CanToolWindowsDock="True"
CanToolWindowsClose="True"
CanToolWindowsAutoHide="False"
IsTabLayoutAnimationEnabled="False"
IsDockGuideAnimationEnabled="False"
IsLiveSplittingEnabled="True"
UseLayoutRounding="True"
SplitterSize="3"
Padding="1,1,1,1"
AreNewTabsInsertedBeforeExistingTabs="False"
AutoHidePopupOpenAnimationDuration="0"
AutoHidePopupCloseAnimationDuration="0"
FloatingToolWindowContainersHaveMaximizeButtons="True"
SerializationId="{Binding Path=ScopeIdentity.Identity}">

<local:PageDockSite.Switcher>
<docking:StandardSwitcher AreDocumentsVisible="False" />
</local:PageDockSite.Switcher>

</local:PageDockSite>
</Grid>

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

Hi Mark,

Can you put together a new small sample project that shows this happening and email that to our support address so that we can debug it and make any changes that are appropriate to help?  In your email, please reference this thread and rename the .zip file extension of what you send so it doesn't get spam blocked.  Thanks!


Actipro Software Support

Posted 3 years ago by Mark Bonner
Avatar

Please find sample emailed to support@actiprosoftware.com

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.