15

I am trying to place a Popup element in a specific position, relative to the Placement control.

In order to achieve that I need to find out the ActualWidth of the popup control. But trying to get this value before or after displaying the popup (IsOpen = True) it always returns 0.

Unfortunately I cannot hard code the size of the popup.

How can I determine the ActualWidth?

animuson
  • 53,861
  • 28
  • 137
  • 147
Nikos Tsokos
  • 3,226
  • 2
  • 34
  • 41

1 Answers1

27

Have you tried getting the ActualWidth of the popup's child element?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742