Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
XamDockManager Multiple Floating Panes with ItemsSourceBehaviour Issue
posted

Hi,

I am using XamDockManager to open detail view from a Call List Grid . I have created a Behavior to Bind Dockmanager's panegroup to a Collection of Items and based on a property IsPinned in Viewmodel I control that only one Item at a time should be pinned/docked and all others should be floating if there exists multiple .

That means multiple detail pages could be opened at the same time . when a window is undocked/floated ,view is automatically move back to call list grid.

The issue is if i open a detail item and undock it and then open another detail item it opens fine . but if a open a detail item and click back button which remove that item from the collection itemsource that makes itemsource count 0 .now if i open a detail item again it won't show up .

The issue is somewhere with the behavior, as long as the itemsource count is greater than zero , means at least one detail window is kept open in floating mode. switching between calllistview and detail view works fine. but when itemsource count is zero. means all detail tabs are closed . then opening detail does not work .

I have attached a test project please have a look, 

there is a button unpin and another button back . unpin will make the window floating and back with remove current item from collection and move back to call list grid.

Its not a good MVVM scenario but just a POC to use commands.

Main Grid name is CallListGrid.

TestHdadmProject.zip