使silverlight适应IE窗口大小的方法
摘要:原文 http://10rem.net/blog/2008/07/04/how-to-resize-a-silverlight-2-app-and-keep-the-same-aspect-ratio<UserControlx:Class="PeteBrown.SilverlightScalingExample.Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2
阅读全文
posted @
2012-07-11 17:59
Kingly
阅读(219)
推荐(0)
silverlight中获取控件的坐标
摘要:void t_GotFocus(object sender, RoutedEventArgs e){var tb = sender as TextBox;var gt = tb.TransformToVisual(null); Point p = gt.Transform(new Point(0, 0));//控件相对于起始坐标(0,0)的位置MessageBox.Show(p.X + " " + p.Y);}
阅读全文
posted @
2012-07-10 17:22
Kingly
阅读(450)
推荐(0)