c# - Control.PointToScreen on Windows Phone -
is there way control's absolute screen co-ordinates on windows phone? also, if method work usercontrol components. wpf seems have control.pointtoscreen, isb't in wp apis
the idea i'm trying use callout control point usercontrol on screen bubble, , anchor point doesn't take in absolute coordinates either - it's huge connected problem i'll build answer post.
use uielement.transformtovisual()
something should trick:
var control = this; // assign control want position of. var transform = control.transformtovisual(application.current.rootvisual); var controlposition = transform.transform(new point(0, 0));
Comments
Post a Comment