Click here to Skip to main content
14,974,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using WPF C#. Inside my MainWindow, I have used Ribbon control inside the first row and AvalonDock control inside the second row. I want to find x, y co-ordinate of the starting point of LayoutDocument tab from screen (0,0) point. I also want to find the width & height of the Avalondock LayoutDocument tab? Please refer attached image.

Click here to see attached image

What I have tried:

I am till now searching for the answer.
Posted
Updated 15-Jun-21 0:32am
v2
Comments
Gerry Schmitz 15-Jun-21 13:12pm
   
Maybe it's simpler to get the width of the TreeView, and the Height of the Title Bar and Ribbon. Use the "live Visual Tree" (in Debug mode) to examine control properties (like .Top, .Left, .Width, etc. were applicable).
Dinesh Kudale 16-Jun-21 9:19am
   
@Gerry Schmitz
Actually, I want to find the co-ordinate of the point where my drawn X and Y-axis intersects with each other.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900