This is a migrated thread and some comments may be shown as answers.

Adorner in dock panel

3 Answers 156 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Xaria D
Top achievements
Rank 1
Xaria D asked on 08 Sep 2010, 04:02 AM
Do Adorners work with Docking?
I have a floating rad Pane and I have added an adorner in RadPane_Loaded event

private void RadPane_Loaded(object sender, RoutedEventArgs e)
        {
            AdornerLayer layer = AdornerLayer.GetAdornerLayer(MyImage); /// IS NULL
           
        }

But it is always null.

3 Answers, 1 is accepted

Sort by
0
Xaria D
Top achievements
Rank 1
answered on 09 Sep 2010, 05:00 AM
It is very important, please let me know if adorner can be used in RadPane or not???
0
Konstantina
Telerik team
answered on 09 Sep 2010, 03:04 PM
Hello,

Thank you for contacting us.

Please make sure that the Image is in the VisualTree when the Loaded event of the Pane is fired. If the image is in the Content of the Pane, it will be added to the VisualTree when the Pane is selected, not when the Loaded event is fired. Probably that is causing the issue.

Looking forward to your reply.

Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Xaria D
Top achievements
Rank 1
answered on 13 Sep 2010, 03:07 AM
Thanks, for the reply. Indeed, it was not added when loaded is fired.
Tags
Docking
Asked by
Xaria D
Top achievements
Rank 1
Answers by
Xaria D
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or