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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -