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
280
Floating content panes has no border
posted

Hello,

I trying to create a MDI application in WPF, using the XamDocManager. Loading different "windows" in a tabgrouppane works as intended, but if I want to change a pane to floating, it will not create a "windows" border around the content pane. By making a content pane floating, I would expect to get a window border around it.

Is this intended? Is it an windows issue? Is there a solution to make it work?

I would also like to prevent any floating content pane to move outside the main window. Is there a way to solve this too?

Does the docmanager also prevents windows, i.e. dialog windows opened from a content pane, from having it's normal window border? For me, this is the case, wich also seem odd. Any advice in this case?

Below are two images hopefully showing what I mean.

/ FW

       

Parents
  • 34810
    Offline posted

    Hello Fredrik,

    I have been investigating into this behavior you are currently seeing, and while I’m a little bit unsure of the exact behavior you are seeing from the screenshots you have provided, it sounds like the floating windows are borderless on your end. I can see this on the left-side of the headers on my end, but I can’t seem to reproduce it with the rest of the floating window. Are you utilizing any Infragistics themes or potentially styling the ToolWindow element in your application?

    With the above said, you may be able to prevent this behavior by handling the ToolWindowLoaded event and setting the e.Window.UseOSNonClientArea property to “false,” where ‘e’ is the event arguments of the ToolWindowLoaded event handler.

    Regarding the XamDockManager preventing other windows opened from a ContentPane from having its normal border: no, it shouldn’t prevent that. I would expect that the WPF Windows or dialogs are unaffected by the presence of the XamDockManager alone.

    Regarding your query about the floating content pane, I am a little bit unsure of what you are looking to achieve? Which Window are you trying to prevent it from moving outside of? Is it the window that houses the XamDockManager? With those questions, I can say that there does not exist anything built-in to achieve this, but it might be doable with some application code. Can you please confirm the behavior you are looking to achieve so I may give you a more definite answer on this?

    Please let me know if you have any other questions or concerns on this matter.

Reply Children