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
695
Screen position
posted

Is it possible to get the screen position for the layout container (which could be the DocumentContentHost) in side the XamDocManager?

Parents
No Data
Reply
  • 54937
    Offline posted

    If you're asking how to convert a point to screen coordinates then Visual - the base class of all elements - has a PointToScreen method that you can use to find out the screen coordindates of a point relative to that element. If you're asking about getting to an element that contains the central content then there isn't anything on the xamDockManager to help with that since its lookless but basically it contains a ContentPresenter within its default template that will contain the content whether that be a DocumentContentHost or something else.

Children