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
1921
How to know the panellocation when unpinned?
posted

Hi,

How can i get the PanelLocation (mean DockedRight, DockedBottom like..) when the

pane is UnPinned state.

I have to store the DockedLocation and Pinned state (without using savelayout). Now i have the

ContentPane instance with me. So throgh the contentPane i have to take the panel location.

I tried the following

PanelLocation pl = XamDockManager.GetPanelLocation(myContentpane);

Unfortunately its returned Unpinned. ok. How to get the location?

Regards,

Ramesh.P

 

 

 

  • 54937
    Suggested Answer
    Offline posted

    Currently there is no property that returns the PaneLocation of what the pane would be if it were pinned. You will probably need to store this information before the pane is unpinned - e.g. in the CommandExecuting event of the ContentPane when the command is ContentPaneCommands.TogglePinnedState.