If two unpinned panes are next to each other in our mainWindow like shown in this example:
In this if pane1 and pane2 both are in unpinned state, and inside pane1 if some button activates the pane2 and tries to bring it to the front, it fails.
Because in the time during which pane2 tries to come in the view during that pane1 is just going back to inActive autohidden state due to whichpane2 couldn't come in the view.
Can you please suggest me a solution for this problem.
I need to fix this issue urgently.
5 Answers, 1 is accepted
You should be able to utilize the FlyoutBehavior property of the RadDocking control in order to achieve what you are going for. You can use the ClickFlyoutBehavior which is already implemented or introduce a custom behavior if you want. Here is what I have in mind:
You can also check out the ClickFlyoutBehaviorWithAnimation SDK example for a sample implementation of a custom behavior.
I hope you find this helpful.
Than you for helping me out, but neither I want ClickFlyoutBehaviour nor I've been able to replicate the default FlyOut behaviour by introducing a custom flyout behaviour.
I have already checked this SDK example but couldn't achieve what i want. Can you suggest me some other solution or can you just send me the code for default flyOut behaviour so that i can replicate it and try to resolve my issue.
I am attaching the OrderedUnpinnedPanes example modified to demonstrate what I had in mind. Basically Pane1 and Pane2 are in unpinned state and setting the IsActive property of Pane2 from a button in Pane1 is working as per your requirements. Can you check the attached project out and let me know if I am missing something?
Thank you so much for your help but this example only works with the ClickFlyoutBehavior, but I dont want to use ClickFlyoutBehavior. By removing that ClickFlyoutBehavior this example is not working as i wanted.
Thank you for the update.
You should also be able to achieve what you are going for with a slightly modified HoverFlyoutBehavior. I have attached the sample project again with the default HoverFlyoutBehavior and a modification in the IFlyoutBehavior.OnPaneDeactivated method. I have included a check to see if the mouse is currently over the Popup containing the RadPane. Please, note that I have not tested this extensively and you might have to modify it to fit your exact scenario.
Hope this helps.