Saturday 1 October 2011

Silverlight and Positioning Elements

Would like to be able to explain the difference between retrieving an elements position via:

GeneralTransform gt = lblRectPos.TransformToVisual(Application.Current.RootVisual);
result = gt.Transform(new Point(0, 0)).Y;

and

result =(double)_shape.GetValue(Canvas.TopProperty);

No comments:

Post a Comment