I need a way to dynamically retrieve (not knowing what type of frameworkElement), the content/items presenter size and offset from the owner’s edges in any form.
I need to create an adorner that covers the content area of a control.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the VisualTreeHelper to identify the ContentPresenter/ItemPresenter from the object if it exists.
Use the following code to get an offset:
Call on presenter whatever desired properties that will give you size (Actual[Height/Width], etc.)