private async static void Move( UserControl viewToMove, Thickness margin, SumoNinjaMonkey.Framework.Controls.PopupView.eCalloutAlign calloutAlign ) { foreach (var child in PopupService._rootControl.Children) { if (child.GetType().Name == "PopupView") { PopupView pv = (PopupView)child; if (pv.MainContent.GetType().Name == viewToMove.GetType().Name) { //pv.Margin = margin; pv.Move(margin.Left, margin.Top); pv.CalloutAlign = calloutAlign; return; } ; } } }