TextBlock tbl= new TextBlock();
tbl.text="Kishore";
double x=tbl.ActualHeight;
double y=tbl.ActualWidth;
如果我在Metro中的loaded事件中执行代码,winRT将返回0。
如何在Loaded或SizeChanged事件中获取ActualWidth?
TextBlock tbl= new TextBlock();
tbl.text="Kishore";
double x=tbl.ActualHeight;
double y=tbl.ActualWidth;