Try something like this:
GeneralTransform t = MyButton.TransformToVisual(null);
Point p = t.TransformPoint(new Point());
That will give you the top-left corner of your AppBar button, and then you can use the size of the PopUp to calculate the HorizontalOffset and VerticalOffset properties.
Rebecca M. Riordan