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
110
Floating ContentPane - How to keep it visible "all" the time
posted

Please need help. Have been struggling with this for last 24 hours. 

I have a small floating contentpane - width:100, height:100 which I'm placing over at coordinate x:10, y:10. There is a third party application window below this floating contentpane  at coordinates (x:0, y:0, width:640, height:640). 

How do I make my floating contentpane to stay visible all the time even if I were to click on the third party application ?

Also, I would like to remove the close button on this floating contentpane. I tried playing around with PaneHeaderPresenter style in the DockManagerGeneric.xaml, but no luck. The changes in the style seem to have an impact on the contentpanes docked, but not on floating contentpanes. I'm sure I'm missing something.

Kindly help. 

 

 

 

 

Parents
  • 54937
    Verified Answer
    Offline posted

    cxradhak said:

    Also, I would like to remove the close button on this floating contentpane. I tried playing around with PaneHeaderPresenter style in the DockManagerGeneric.xaml, but no luck. The changes in the style seem to have an impact on the contentpanes docked, but not on floating contentpanes. I'm sure I'm missing something.

    By default the toolwindow uses the os non-client area. You cannot remove that from the WPF Window. If the AllowClose of the ContentPane is false then the button will be disabled. If you want you can handle the ToolWindowLoaded event and set the e.ToolWindow's UseOSNonClientArea to false and then provide a custom template for the PaneToolWindow that doesn't include the close button.

Reply Children
No Data